Change aliases to abbr and improve eza a bit
This commit is contained in:
parent
2b5d50ca25
commit
3405ca7784
21
fish/.config/fish/conf.d/abbr.fish
Normal file
21
fish/.config/fish/conf.d/abbr.fish
Normal 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
|
@ -17,4 +17,6 @@ end
|
|||||||
fish_add_path $HOME/.symfony/bin
|
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
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
function f
|
|
||||||
z $argv
|
|
||||||
end
|
|
@ -1,5 +0,0 @@
|
|||||||
if type "eza"
|
|
||||||
function ll
|
|
||||||
ls -a $argv
|
|
||||||
end
|
|
||||||
end
|
|
@ -1,5 +0,0 @@
|
|||||||
if type "eza"
|
|
||||||
function ls
|
|
||||||
eza --group-directories-first --git -l $argv
|
|
||||||
end
|
|
||||||
end
|
|
@ -1,3 +0,0 @@
|
|||||||
function gcb
|
|
||||||
git checkout -b $argv
|
|
||||||
end
|
|
@ -1,3 +0,0 @@
|
|||||||
function gco
|
|
||||||
git checkout $argv
|
|
||||||
end
|
|
@ -1,3 +0,0 @@
|
|||||||
function gl
|
|
||||||
git pull $argv
|
|
||||||
end
|
|
@ -1,3 +0,0 @@
|
|||||||
function gp
|
|
||||||
git push $argv
|
|
||||||
end
|
|
@ -1,5 +0,0 @@
|
|||||||
if type "lazygit"
|
|
||||||
function lg
|
|
||||||
lazygit $argv
|
|
||||||
end
|
|
||||||
end
|
|
Loading…
x
Reference in New Issue
Block a user