]> git.ipfire.org Git - ipfire-2.x.git/blame - config/etc/profile
HinzugefĆ¼gt:
[ipfire-2.x.git] / config / etc / profile
CommitLineData
cd1a2927
MT
1# /etc/bashrc
2
3umask 022
4unset i
5
6# are we an interactive shell?
7if [ "$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
17fi
18
19# Path manipulation
20PATH="/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin"
21
22# No core files by default
23ulimit -S -c 0 > /dev/null 2>&1
24
25USER=`id -un`
26LOGNAME=$USER
27
28HOSTNAME=`/bin/hostname`
29HISTSIZE=250
30
31if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
32 INPUTRC=/etc/inputrc
33fi
34
35export PATH USER LOGNAME HOSTNAME HISTSIZE INPUTRC
36
37# LS Colors
38alias dir='ls'
39alias ll='ls -l --color=tty'
40alias ls='ls --color=tty'
41
f0ca8c34 42# IPFire language settings
cd1a2927
MT
43LANG=en_US.utf8
44PS1='\[\033[1;33m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h\[\033[1;37m\]:\[\033[1;31m\]\w \[\033[1;36m\]\$ \[\033[0m\]'
45echo -n -e '\033%G'
46
47export LANG PS1
f0ca8c34
MT
48# Enable colors for applications like mc....
49export TERM=xterm-color