Setting my PS1 and aliases for BASH

In Debian as of 4.0r2, you can set a master bashrc file at /etc/bash.bashrc.

My .bashrc file looks in partial like,

# set a fancy prompt (non-color, unless we know we "want" color)
case "$TERM" in
xterm-color)
    PS1='\n-----------------------------\n\t ${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
    ;;
*)
    PS1='\n-----------------------------\n\t ${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
    ;;
esac

alias ls="ls -F"
alias ll="ls -l"
alias ltr="ls -ltr"
alias rm="rm -i"
alias mv="mv -i"
alias cp="cp -i"
alias pico="pico -r3000"
alias htdocs="cd /var/www"

On another machine (Redhat) I have this PS1 setup.

PS1="\n-----------------------------\[\e]0;\w\a\]\n\t \[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ "

Page Comments (Click to edit)






[Click to add or edit comments])

Please prepend comments below including a date

Design by N.Design Studio, adapted by solidGone.org (version 1.0.0)
Have a nice day.