aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fl.fischer@fau.de>2015-10-21 15:01:45 +0200
committerFlorian Fischer <florian.fl.fischer@fau.de>2015-10-21 15:01:45 +0200
commit61cbf3fbc8b902d33a17dffec2e6d83b47e33f5e (patch)
tree8dcfab614a17093083dcb831f9bf5c26ca60be09
parent0f6d446c5ed961bd4c2986d634d19ccacd739a5c (diff)
downloaddotfiles-61cbf3fbc8b902d33a17dffec2e6d83b47e33f5e.tar.gz
dotfiles-61cbf3fbc8b902d33a17dffec2e6d83b47e33f5e.zip
only set diff alias if colordiff is available
-rw-r--r--zshrc5
1 files changed, 4 insertions, 1 deletions
diff --git a/zshrc b/zshrc
index fe8a225..2a4ddfc 100644
--- a/zshrc
+++ b/zshrc
@@ -82,7 +82,10 @@ export MPD_PORT="6601"
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
-alias diff="colordiff"
+if type colordiff &>/dev/null
+then
+ alias diff="colordiff"
+fi
# alias for FAU vpn
alias fauvpnfull="wd FAUAllgemein && sudo openvpn ~/Documents/MyDocuments/Study/FAU\ Erlangen/Allgemein/FAU-Fulltunnel.ovpn && cd ~"