]> git.pld-linux.org Git - packages/bash.git/blame - bashrc
- up to 4.0.33
[packages/bash.git] / bashrc
CommitLineData
5266f627 1# /etc/bashrc
2
3# System wide functions and aliases
4# Environment stuff goes in /etc/profile
5
4f59104f
ER
6# Test for an interactive shell. There is no need to set anything
7# past this point for scp and rcp, and it's important to refrain from
8# outputting anything in those cases.
9if [[ $- != *i* ]] ; then
10 # Shell is non-interactive. Be done now!
11 return
12fi
13
5c06e41e 14# If this is an xterm set the title to user@host:dir
b0aaff1e 15case $TERM in
ef825efc 16 gnome*|nxterm|xterm*|rxvt*|konsole*)
5c06e41e 17 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
b0aaff1e
PG
18 ;;
19 *)
b0aaff1e
PG
20 ;;
21esac
5c06e41e 22PS1="[\u@\h \W]\\$ "
4556fc70 23
f059f7fe 24alias which="type -p"
4556fc70 25
f685cf89 26# SYSTEM WIDE ALIASES ETC.
5eb0c7e4
ER
27if [ "$(echo /etc/shrc.d/*.sh)" != "/etc/shrc.d/*.sh" ]; then
28 for i in /etc/shrc.d/*.sh; do
29 . $i
30 done
31 unset i
32fi
This page took 0.086881 seconds and 4 git commands to generate.