]>
Commit | Line | Data |
---|---|---|
5266f627 | 1 | # /etc/bashrc |
2 | ||
3 | # System wide functions and aliases | |
4 | # Environment stuff goes in /etc/profile | |
5 | ||
5c06e41e | 6 | # If this is an xterm set the title to user@host:dir |
b0aaff1e | 7 | case $TERM in |
5c06e41e JR |
8 | gnome|nxterm|xterm*|rxvt*) |
9 | PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"' | |
b0aaff1e PG |
10 | ;; |
11 | *) | |
b0aaff1e PG |
12 | ;; |
13 | esac | |
5c06e41e JR |
14 | |
15 | PS1="[\u@\h \W]\\$ " | |
27d6a74f | 16 | export PS1 |
4556fc70 | 17 | |
f059f7fe | 18 | alias which="type -p" |
4556fc70 | 19 | |
f685cf89 | 20 | # SYSTEM WIDE ALIASES ETC. |
5eb0c7e4 ER |
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 | |
aafe766f | 27 | |
6e8e0f6b | 28 | [ -n "$TERM" ] && tty >/dev/null 2>&1 && stty erase `tput kbs` |