# .bashrc # User specific aliases and functions alias rm='rm -i' alias cp='cp -i' alias mv='mv -i' # Source global definitions if [ -f /etc/bashrc ]; then . /etc/bashrc fi # Set prompt PS1="[\u@`hostname`] \W >> " PS2=">" # grep using color option alias grep="grep --color" # Custom prompt function function prm1 { PS1="[\u@\h \w]# " echo "$(mytty=$(tty | sed 's/\/dev\///'); who|grep "$mytty" | awk '{print $1, $2, $5}')" "$(history 1)" >> /usr/local/lp/bash_eternal_history } PROMPT_COMMAND=prm1 # keep any custom aliases in a separate file [ -r ~/.alias ] && . ~/.alias