Change aliases to abbr and improve eza a bit

This commit is contained in:
Tim 2025-05-16 15:14:36 +02:00
parent 2b5d50ca25
commit 3405ca7784
10 changed files with 24 additions and 31 deletions

View File

@ -0,0 +1,21 @@
abbr -a f z
# ls
if type -q "eza"
set -U ls eza -lg --group-directories-first --git --git-repos-no-status --header --time-style=long-iso
else
set -U ls ls
end
abbr -a ls $ls
abbr -a ll $ls
abbr -a la $ls -a
abbr -a ld $ls -a --total-size
# git
abbr -a gco git checkout
abbr -a gcb git checkout -b
abbr -a gl git pull
abbr -a gp git push
if type -q "lazygit"
abbr -a lg lazygit
end

View File

@ -18,3 +18,5 @@ fish_add_path $HOME/.symfony/bin
set fish_function_path (path resolve $__fish_config_dir/functions/*/) $fish_function_path set fish_function_path (path resolve $__fish_config_dir/functions/*/) $fish_function_path
set fish_complete_path (path resolve $__fish_config_dir/completions/*/) $fish_complete_path set fish_complete_path (path resolve $__fish_config_dir/completions/*/) $fish_complete_path
set -gx XDG_CONFIG_HOME $HOME/.config

View File

@ -1,3 +0,0 @@
function f
z $argv
end

View File

@ -1,5 +0,0 @@
if type "eza"
function ll
ls -a $argv
end
end

View File

@ -1,5 +0,0 @@
if type "eza"
function ls
eza --group-directories-first --git -l $argv
end
end

View File

@ -1,3 +0,0 @@
function gcb
git checkout -b $argv
end

View File

@ -1,3 +0,0 @@
function gco
git checkout $argv
end

View File

@ -1,3 +0,0 @@
function gl
git pull $argv
end

View File

@ -1,3 +0,0 @@
function gp
git push $argv
end

View File

@ -1,5 +0,0 @@
if type "lazygit"
function lg
lazygit $argv
end
end