mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-15 10:53:30 +00:00
feat(shell): gazorby/fish-exa
Signed-off-by: Ismo Vuorinen <ismo@ivuorinen.net>
This commit is contained in:
7
config/fish/functions/exa_git.fish
Normal file
7
config/fish/functions/exa_git.fish
Normal file
@@ -0,0 +1,7 @@
|
||||
function exa_git -d "Use exa and its git options if in a git repo"
|
||||
if git rev-parse --is-inside-work-tree &>/dev/null
|
||||
$__FISH_EXA_BINARY $EXA_STANDARD_OPTIONS {$EXA_LL_OPTIONS} --git $argv
|
||||
else
|
||||
$__FISH_EXA_BINARY $EXA_STANDARD_OPTIONS {$EXA_LL_OPTIONS} $argv
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user