mirror of
https://github.com/pnx/dotfiles
synced 2026-08-31 14:58:13 +02:00
fish: make ll and ls functions lookup eza in $PATH instead of using absolute path.
This commit is contained in:
parent
836da579e6
commit
3642636a47
2 changed files with 4 additions and 4 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
function ll
|
function ll
|
||||||
if test -f /usr/bin/eza
|
if command -q eza
|
||||||
/usr/bin/eza --icons=always -l --git $argv
|
eza --icons=always -l --git $argv
|
||||||
else
|
else
|
||||||
/bin/ls --color=auto -l $argv
|
/bin/ls --color=auto -l $argv
|
||||||
end
|
end
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
function ls
|
function ls
|
||||||
if test -f /usr/bin/eza
|
if command -q eza
|
||||||
/usr/bin/eza $argv
|
eza $argv
|
||||||
else
|
else
|
||||||
/bin/ls --color=auto $argv
|
/bin/ls --color=auto $argv
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue