From Dave's wiki
Jump to navigation Jump to search
alias h='history'
alias y='echo yes'
alias less='less -X'
alias size='ls -al | sort +4n'
alias listdir='ls -lart | grep "^d"'
alias cp='cp -i'
alias timer="perl -e '\$m = '0'; while (1){ ++\$i; if (\$i == 60){ ++\$m; \$i = 0 }; print \"\$m min \$i sec\n\"; sleep 1 }'"
alias mv='mv -i'
alias man='LANG=C \man'

# Some shortcuts for different directory listings
#alias ls='ls -hF --color=tty'                 # classify files in colour
alias grep='grep --color'

# When changing directory small typos can be ignored by bash
# for example, cd /vr/lgo/apaache would find /var/log/apache
shopt -s cdspell

#Change the colours of the command prompt
function prompt
local WHITE="\[\033[1;37m\]"
local GREEN="\[\033[0;32m\]"
local CYAN="\[\033[0;36m\]"
local GRAY="\[\033[0;37m\]"
local BLUE="\[\033[0;34m\]"
#export PS1="
#${GREEN}\u${CYAN}@${BLUE}\h ${CYAN}\w${GRAY}
#$ "

export PS1="${GREEN}\u${CYAN}@${BLUE}\h ${CYAN}\w${GRAY} \D{%F %T} Your command is my wish! "


export PATH=.:$HOME/bin:$HOME/perl/bin:$PATH