# global bash common settings: # /etc/bashrc # Author: Roumen Petrov # Placed in the Public Domain. # if test -n "$PS1"; then # Note PS1 is not set only when SHELL execute a command. # See bash(1) - PROMPTING. #if test "$SHLVL" -gt 1; then # Work around for "interactive nonlogon shell" # usually started in "X terminal" program and # some other specific cases: # Set PS1 again, because interactive shell override PS1. # Note: keep in sync with /etc/profile PS1='\u@\h:\w\$ ' export PS1 # Some OS-es process shell scripts from # "/etc/profile.d/". NEVER do next: #for file in /etc/profile.d/*.sh ; do # if test -x $file; then # . $file # fi #done # Solve the ls "color problem" (missing ls alias, # unset variables LS_COLORS and LS_OPTIONS) # in "X terminal" program. if test -r /etc/profile.d/coreutils-dircolors.sh; then if test -x /etc/profile.d/coreutils-dircolors.sh; then . /etc/profile.d/coreutils-dircolors.sh fi else if [ -f $HOME/.dir_colors ]; then eval `dircolors -b $HOME/.dir_colors` elif [ -f /etc/DIR_COLORS ]; then eval `dircolors -b /etc/DIR_COLORS` else eval `dircolors -b` fi fi #fi # Note aliases are lost when # "interactive nonlogin shell" is started. # Put your common aliases here: alias l="ls -lp" alias la="ls -ap" alias ll="ls -lap" fi