Checking if xscreensaver is installed before creating the lock alias.

This commit is contained in:
Rodolphe Breard 2015-10-20 13:35:06 +02:00
parent 344b86834d
commit 7bb8787b71

2
.zshrc
View file

@ -60,7 +60,7 @@ alias grep='grep -n --color=auto'
alias j='jobs' alias j='jobs'
alias df='df -h' alias df='df -h'
alias du='du -ch' alias du='du -ch'
alias lock='xscreensaver-command --lock' hash xscreensaver-command 2>/dev/null && alias lock='xscreensaver-command --lock'
hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"' hash sqlmap 2>/dev/null && alias sqlmap='sqlmap --user-agent="Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"'
hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5' hash sqlmap 2>/dev/null && alias sqlmap-tor='sqlmap --tor --tor-type=SOCKS5'
hash steam 2>/dev/null && alias steam='find ~/.steam/root/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" \) -print -delete; steam' hash steam 2>/dev/null && alias steam='find ~/.steam/root/ \( -name "libgcc_s.so*" -o -name "libstdc++.so*" -o -name "libxcb.so*" \) -print -delete; steam'