Tag Archives: linux

Andrew’s Cool Bash Prompt

Andrew wrote a tip today to have your bash prompt show the last ‘n’ folders of your current directory. His original suggestions is on his website, [Readable Path for Terminal][1]. His code gave me several errors, which I am pretty sure at least one was because of the bash to HTML conversion. So I wanted [...]

Make Terminal.app’s Completion Case Insensitive

Place in your .profile or .bash_profile: bind ‘set completion-ignore-case on’ set -o noclobber Tweet This

Better Terminal Prompt

Set terminal prompt color and style, green user, red root (set elsewhere), machine, and working directory. Place in your .profile or .bash_profile: if [ "$TERM" = "xterm-color" ]; then C1=”[33[0;32m]” C2=”[33[1;0m]” export PS1=”${C1}u${C2}@h: W $ ” fi Tweet This