Permalink
Browse files

Add aliases

  • Loading branch information...
1 parent ee7c7aa commit 48e04fb65f5dc188ac59d2b0d71377a4b2177a31 nicolargo committed Feb 20, 2012
Showing with 14 additions and 3 deletions.
  1. +6 −0 _bashrc.d/bashrc_aliases
  2. +8 −3 bashrc
View
@@ -0,0 +1,6 @@
+alias la='ls -alF'
+alias ll='ls -lF'
+alias la='ls -alF'
+alias ll='ls -lF'
+alias alert_helper='history|tail -n1|sed -e "s/^\s*[0-9]\+\s*//" -e "s/;\s*alert$//"'
+alias alert='notify-send -i /usr/share/icons/gnome/32x32/apps/gnome-terminal.png "[0] "'
View
11 bashrc
@@ -1,7 +1,12 @@
# Defined prompt only if is not already defined
if [ ! -z "$PS1" ]; then
- echo "== Define the prompt"
- source .bashrc.d/bashrc_prompt
+ if [ -r ~/.bashrc.d/bashrc_prompt_1line ]; then
+ # source ~/.bashrc.d/bashrc_prompt
+ source ~/.bashrc.d/bashrc_prompt_1line
+ fi
fi
-
+# Global aliases
+if [ -r ~/.bashrc.d/bashrc_aliases ]; then
+ source ~/.bashrc.d/bashrc_aliases
+fi

0 comments on commit 48e04fb

Please sign in to comment.