Skip to content

Instantly share code, notes, and snippets.

@revooms
Created December 18, 2015 11:26
Show Gist options
  • Save revooms/27934226c309b6bf13a8 to your computer and use it in GitHub Desktop.
Save revooms/27934226c309b6bf13a8 to your computer and use it in GitHub Desktop.
Linux shell aliase
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias apti='sudo apt-get install'
alias apts='apt-cache search'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias grep='grep --colour=auto'
alias l='ls -CF'
alias la='ls -A'
alias ll='ls -alF'
alias ls='ls --color=auto'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment