From e881ca38446a7c132470d6e31b74a179c8fec239 Mon Sep 17 00:00:00 2001 From: Rodolphe Breard Date: Tue, 3 Nov 2015 00:28:43 +0100 Subject: [PATCH] Checking if tree is installed. --- .aliases | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.aliases b/.aliases index 1d3e53b..aec6964 100644 --- a/.aliases +++ b/.aliases @@ -3,12 +3,12 @@ alias ll='ls -lihF' alias la='ls -A' alias l='ll -A' -alias t='tree' alias sudo='sudo ' alias grep='grep -n --color=auto' alias j='jobs' alias df='df -h' alias du='du -ch' +hash tree 2>/dev/null && alias t='tree' hash htop 2>/dev/null && alias top='htop' 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)"'