]>
Commit | Line | Data |
---|---|---|
cd1a2927 MT |
1 | # /etc/bashrc |
2 | ||
3 | umask 022 | |
4 | unset i | |
5 | ||
6 | # are we an interactive shell? | |
7 | if [ "$PS1" ]; then | |
8 | if [ -x /usr/bin/tput ]; then | |
9 | if [ "x`tput kbs`" != "x" ]; then # We can't do this with "dumb" terminal | |
10 | stty erase `tput kbs` | |
11 | elif [ -x /usr/bin/wc ]; then | |
12 | if [ "`tput kbs|wc -c `" -gt 0 ]; then # We can't do this with "dumb" terminal | |
13 | stty erase `tput kbs` | |
14 | fi | |
15 | fi | |
16 | fi | |
17 | fi | |
18 | ||
19 | # Path manipulation | |
20 | PATH="/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin" | |
21 | ||
22 | # No core files by default | |
23 | ulimit -S -c 0 > /dev/null 2>&1 | |
24 | ||
25 | USER=`id -un` | |
26 | LOGNAME=$USER | |
27 | ||
28 | HOSTNAME=`/bin/hostname` | |
29 | HISTSIZE=250 | |
30 | ||
31 | if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then | |
32 | INPUTRC=/etc/inputrc | |
33 | fi | |
34 | ||
35 | export PATH USER LOGNAME HOSTNAME HISTSIZE INPUTRC | |
36 | ||
37 | # LS Colors | |
38 | alias dir='ls' | |
39 | alias ll='ls -l --color=tty' | |
40 | alias ls='ls --color=tty' | |
41 | ||
42 | # IPCop language settings | |
43 | LANG=en_US.utf8 | |
44 | PS1='\[\033[1;33m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h\[\033[1;37m\]:\[\033[1;31m\]\w \[\033[1;36m\]\$ \[\033[0m\]' | |
45 | echo -n -e '\033%G' | |
46 | ||
47 | export LANG PS1 |