about summary refs log tree commit diff
path: root/aliases.sh
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2017-07-02T03·09-0400
committerWilliam Carroll <wpcarro@gmail.com>2017-07-02T03·09-0400
commit82a5db6133dcc0907d5bfb6eb47e9e762a34a9da (patch)
tree88763956d4e5e810aceb51a544c8fbd2d7d85c08 /aliases.sh
parent821eda6764697e738089dbc760d3a101561efcb1 (diff)
Updates aliases script
Diffstat (limited to 'aliases.sh')
-rw-r--r--aliases.sh18
1 files changed, 12 insertions, 6 deletions
diff --git a/aliases.sh b/aliases.sh
index 096c144c542c..29c269998982 100644
--- a/aliases.sh
+++ b/aliases.sh
@@ -4,12 +4,18 @@ alias dir='find . -maxdepth 1 -type d -regex "\.\/[^.].+"'
 
 
 # aliases with dependencies
-command -v nvim && alias vim=nvim || echo "Missing dependency (nvim). Failed to alias vim -> nvim"
-command -v 'find -E' && alias find='find -E' || echo "Missing dependency (find -E). Failed to alias find -> find -E"
-command -v egrep && alias grep=egrep || echo "Missing dependency (egrep). Failed to alias grep -> egrep"
-command -v 'pygmentize -g' && alias ccat='pygmentize -g' || echo "Missing dependency (pygmentize -g). Failed to alias ccat -> pygmentize -g"
-command -v hub && alias git=hub || echo "Missing dependency (hub). Failed to alias git -> hub"
-command -v tmux && alias tls='tmux list-sessions' || echo "Missing dependency (tmux). Failed to alias tls -> tmux list-sessions"
+command -v nvim >/dev/null && alias vim=nvim || \
+        echo "Missing dependency (nvim). Failed to alias vim -> nvim"
+command -v find >/dev/null && alias find='find -E' || \
+        echo "Missing dependency (find -E). Failed to alias find -> find -E"
+command -v egrep >/dev/null && alias grep=egrep || \
+        echo "Missing dependency (egrep). Failed to alias grep -> egrep"
+command -v pygmentize >/dev/null && alias ccat='pygmentize -g' >/dev/null || \
+        echo "Missing dependency (pygmentize -g). Failed to alias ccat -> pygmentize -g"
+command -v hub >/dev/null && alias git=hub || \
+        echo "Missing dependency (hub). Failed to alias git -> hub"
+command -v tmux >/dev/null && alias tls='tmux list-sessions' || \
+        echo "Missing dependency (tmux). Failed to alias tls -> tmux list-sessions"
 
 
 # git-specific aliases