# Begin /etc/bashrc # Written for Beyond Linux From Scratch # by James Robertson # updated by Bruce Dubbs # Make sure that the terminal is set up properly for each shell if [ -f /etc/profile.d/tinker-term.sh ]; then source /etc/profile.d/tinker-term.sh fi # System wide aliases and functions. # System wide environment variables and startup programs should go into # /etc/profile. Personal environment variables and startup programs # should go into ~/.bash_profile. Personal aliases and functions should # go into ~/.bashrc # Provides a colored /bin/ls command. Used in conjunction with code in # /etc/profile. alias ls='ls --color=auto' alias ll='ls -la' alias which='alias | /usr/bin/which --tty-only --read-alias --show-dot --show-tilde' # Make the shell a little bit more interactive # to prevent the deletion of some files alias mv='mv -i' alias rm='rm -i' alias cp='cp -i' # Midnight Commander isn't compatible to UTF8. # So we use it in ACSII-Mode. alias mc='mc -a' # Provides prompt for non-login shells, specifically shells started # in the X environment. [Review the LFS archive thread titled # PS1 Environment Variable for a great case study behind this script # addendum.] #export PS1="\033[0m[\033[1;33m\u\033[1;37m@\033[1;32m\]\h \033[1;31m\w\033[0m]\\$ " export PS1="[\u@\h \w]\\$ " #export PS1='\u@\h:\w\$ ' # End /etc/bashrc