]> git.pld-linux.org Git - packages/bash.git/blob - bashrc
- xterm title done PROPER way
[packages/bash.git] / bashrc
1 # /etc/bashrc
2
3 # System wide functions and aliases
4 # Environment stuff goes in /etc/profile
5
6 # If this is an xterm set the title to user@host:dir
7 case $TERM in
8         gnome|nxterm|xterm*|rxvt*)
9                 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
10                 ;;
11         *)
12                 ;;
13 esac
14
15 PS1="[\u@\h \W]\\$ "
16 export PS1
17
18 alias which="type -p"
19
20 # SYSTEM WIDE ALIASES ETC.
21 if [ "$(echo /etc/shrc.d/*.sh)" != "/etc/shrc.d/*.sh" ]; then
22         for i in /etc/shrc.d/*.sh; do
23                 . $i
24         done
25         unset i
26 fi
27
28 [ -n "$TERM" ] && tty >/dev/null 2>&1 && stty erase `tput kbs`
This page took 0.026215 seconds and 3 git commands to generate.