✨ feat(fish): new functions
This commit is contained in:
parent
ea70e90f9e
commit
d6b5ac0b58
2 changed files with 10 additions and 0 deletions
3
.config/fish/functions/gr.fish
Normal file
3
.config/fish/functions/gr.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function gr --wraps='cd "$(git rev-parse --show-toplevel)"' --description 'alias gr=cd "$(git rev-parse --show-toplevel)"'
|
||||
cd "$(git rev-parse --show-toplevel)" $argv
|
||||
end
|
7
.config/fish/functions/lm.fish
Normal file
7
.config/fish/functions/lm.fish
Normal file
|
@ -0,0 +1,7 @@
|
|||
function lm --wraps='eza --long --header -a --icons --git --group-directories-first' --description 'alias l=eza --long --header -a --icons --git --group-directories-first'
|
||||
if type -f eza &>/dev/null
|
||||
eza --long --header -a --icons --git --hyperlink -s modified $argv
|
||||
else
|
||||
missing_package eza
|
||||
end
|
||||
end
|
Loading…
Add table
Reference in a new issue