summaryrefslogtreecommitdiff
path: root/bash
diff options
context:
space:
mode:
authorEkaitz Zárraga <ekaitz.zarraga@gmail.com>2016-02-15 20:56:40 +0100
committerEkaitz Zárraga <ekaitz.zarraga@gmail.com>2016-02-15 20:56:40 +0100
commita6a061a470dfc66b6307d3d7f25b2f4233c89504 (patch)
tree41065b98163e8ad1468b5928f66ad819bba40602 /bash
parentb4755afe809f062ec537cdfe70a5ced45ee8ec32 (diff)
bash/.bash_aliases
Diffstat (limited to 'bash')
-rw-r--r--bash/.bash_aliases16
1 files changed, 16 insertions, 0 deletions
diff --git a/bash/.bash_aliases b/bash/.bash_aliases
index 96bd16a..dd9cc8a 100644
--- a/bash/.bash_aliases
+++ b/bash/.bash_aliases
@@ -6,3 +6,19 @@ alias r='ssh -l root'
# fuck!
alias fuck='sudo $(history -p \!\!)'
+
+# enable color support of ls and also add handy aliases
+if [ -x /usr/bin/dircolors ]; then
+ test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
+ alias ls='ls --color=auto'
+ alias grep='grep --color=auto'
+ alias fgrep='fgrep --color=auto'
+ alias egrep='egrep --color=auto'
+fi
+
+# some more ls aliases
+alias ll='ls -alF'
+alias la='ls -A'
+alias l='ls -CF'
+
+