22 lines
546 B
Bash
22 lines
546 B
Bash
# If not running interactively, don't do anything
|
|
case $- in
|
|
*i*) ;;
|
|
*) return;;
|
|
esac
|
|
|
|
|
|
# bash aliases
|
|
alias refresh="cd $PWD > /dev/null"
|
|
alias c="clear"
|
|
alias e="exit"
|
|
alias no="yes n"
|
|
alias open="mimeopen"
|
|
alias browse "mimeopen ."
|
|
|
|
# colourify things!
|
|
alias ls='ls --color=auto'
|
|
alias grep='grep --color=auto'
|
|
|
|
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$//'\'')"'
|
|
|
|
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|