Check is eza exists before ls alias overwrite
This commit is contained in:
parent
1df7feaa6a
commit
c707c3fbb2
@ -29,6 +29,7 @@ alias python=python3
|
|||||||
# eza overide
|
# eza overide
|
||||||
TREE_IGNORE="cache|log|logs|node_modules|vendor"
|
TREE_IGNORE="cache|log|logs|node_modules|vendor"
|
||||||
|
|
||||||
|
if type "$foobar_command_name" > /dev/null; then
|
||||||
alias ls=' eza --group-directories-first'
|
alias ls=' eza --group-directories-first'
|
||||||
alias la=' ls -a'
|
alias la=' ls -a'
|
||||||
alias ll=' ls --git -l'
|
alias ll=' ls --git -l'
|
||||||
@ -36,4 +37,4 @@ alias lt=' ls --tree -D -L 2 -I ${TREE_IGNORE}'
|
|||||||
alias ltt=' ls --tree -D -L 3 -I ${TREE_IGNORE}'
|
alias ltt=' ls --tree -D -L 3 -I ${TREE_IGNORE}'
|
||||||
alias lttt=' ls --tree -D -L 4 -I ${TREE_IGNORE}'
|
alias lttt=' ls --tree -D -L 4 -I ${TREE_IGNORE}'
|
||||||
alias ltttt=' ls --tree -D -L 5 -I ${TREE_IGNORE}'
|
alias ltttt=' ls --tree -D -L 5 -I ${TREE_IGNORE}'
|
||||||
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user