From 18c3a77629f2fb72d0548eafe3b630295c226b85 Mon Sep 17 00:00:00 2001 From: William Carroll Date: Fri, 15 Sep 2017 11:53:26 -0400 Subject: [PATCH] Prefer exa aliases in lieu of ls --- aliases.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/aliases.sh b/aliases.sh index 742e09ff8..e00fefeeb 100644 --- a/aliases.sh +++ b/aliases.sh @@ -1,4 +1,3 @@ -alias ll="ls -l" alias c="clear" 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" +# 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 # kubernetes aliases alias kpods='kubectl get pods'