]> git.pld-linux.org Git - packages/bash.git/blob - bashrc
- added alias grep='grep --colour=auto'
[packages/bash.git] / bashrc
1 # /etc/bashrc
2
3 # System wide functions and aliases
4 # Environment stuff goes in /etc/profile
5
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.
9 if [[ $- != *i* ]] ; then
10         # Shell is non-interactive.  Be done now!
11         return
12 fi
13
14 # If this is an xterm set the title to user@host:dir
15 case $TERM in
16         gnome|nxterm|xterm*|rxvt*)
17                 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
18                 ;;
19         *)
20                 ;;
21 esac
22 PS1="[\u@\h \W]\\$ "
23
24 alias grep="grep --colour=auto"
25 alias which="type -p"
26
27 # SYSTEM WIDE ALIASES ETC.
28 if [ "$(echo /etc/shrc.d/*.sh)" != "/etc/shrc.d/*.sh" ]; then
29         for i in /etc/shrc.d/*.sh; do
30                 . $i
31         done
32         unset i
33 fi
This page took 0.048692 seconds and 4 git commands to generate.