Prefer exa aliases in lieu of ls
This commit is contained in:
parent
658c41a54e
commit
18c3a77629
1 changed files with 13 additions and 1 deletions
14
aliases.sh
14
aliases.sh
|
@ -1,4 +1,3 @@
|
||||||
alias ll="ls -l"
|
|
||||||
alias c="clear"
|
alias c="clear"
|
||||||
alias dir='find . -maxdepth 1 -type d -regex "\.\/[^.].+"'
|
alias dir='find . -maxdepth 1 -type d -regex "\.\/[^.].+"'
|
||||||
|
|
||||||
|
@ -18,6 +17,19 @@ command -v tmux >/dev/null && alias tls='tmux list-sessions' || \
|
||||||
echo "Missing dependency (tmux). Failed to alias tls -> tmux list-sessions"
|
echo "Missing dependency (tmux). Failed to alias tls -> tmux list-sessions"
|
||||||
|
|
||||||
|
|
||||||
|
# exa-specific aliases
|
||||||
|
command -v exa >/dev/null && alias ls='exa' || \
|
||||||
|
echo 'Missing dependency (exa). Failed to alias ls -> exa'
|
||||||
|
command -v exa >/dev/null && alias ll='exa -l' || \
|
||||||
|
echo 'Missing dependency (exa). Failed to alias ll -> exa -l' && \
|
||||||
|
alias ll='ls -l' # fallback to ls -l
|
||||||
|
command -v exa >/dev/null && alias la='exa -la' || \
|
||||||
|
echo 'Missing dependency (exa). Failed to alias la -> exa -la' && \
|
||||||
|
alias la='ls -la' # fallback to ls -la
|
||||||
|
command -v exa >/dev/null && alias lt='exa --tree' || \
|
||||||
|
echo 'Missing dependency (exa). Failed to alias lt -> exa --tree'
|
||||||
|
|
||||||
|
|
||||||
if command -v kubectl >/dev/null; then
|
if command -v kubectl >/dev/null; then
|
||||||
# kubernetes aliases
|
# kubernetes aliases
|
||||||
alias kpods='kubectl get pods'
|
alias kpods='kubectl get pods'
|
||||||
|
|
Loading…
Reference in a new issue