mirror of
https://github.com/pnx/dotfiles
synced 2026-06-18 03:50:03 +02:00
fish/functions: add fallback options if non-standard commands does not exist.
This commit is contained in:
parent
a834fa9efd
commit
f66093b0ef
4 changed files with 24 additions and 9 deletions
|
|
@ -1,3 +1,7 @@
|
|||
function tree --wraps='eza -T' --description 'alias tree eza -T'
|
||||
eza -T $argv
|
||||
function tree
|
||||
if test -f /usr/bin/eza
|
||||
/usr/bin/eza -T $argv
|
||||
else
|
||||
/bin/tree $argv
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue