mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-13 12:32:59 +02:00
* Consolenprogramme erscheinen nun in Farbe statt in S/W. * MC in die ISO gepackt. * Pakete für amavisd, nmap, nfs, mailx und spamassassin erstellt. Geändert: * IMAP-Ordnerstrukturen des Cyrus-IMAPd angelegt mit richtigen Rechten. git-svn-id: http://svn.ipfire.org/svn/ipfire/trunk@180 ea5c0bd1-69bd-2848-81d8-4f18e57aeed8
50 lines
1.1 KiB
Bash
50 lines
1.1 KiB
Bash
# /etc/bashrc
|
|
|
|
umask 022
|
|
unset i
|
|
|
|
# are we an interactive shell?
|
|
if [ "$PS1" ]; then
|
|
if [ -x /usr/bin/tput ]; then
|
|
if [ "x`tput kbs`" != "x" ]; then # We can't do this with "dumb" terminal
|
|
stty erase `tput kbs`
|
|
elif [ -x /usr/bin/wc ]; then
|
|
if [ "`tput kbs|wc -c `" -gt 0 ]; then # We can't do this with "dumb" terminal
|
|
stty erase `tput kbs`
|
|
fi
|
|
fi
|
|
fi
|
|
fi
|
|
|
|
# Path manipulation
|
|
PATH="/sbin:/usr/sbin:/usr/local/sbin:/bin:/usr/bin:/usr/local/bin"
|
|
|
|
# No core files by default
|
|
ulimit -S -c 0 > /dev/null 2>&1
|
|
|
|
USER=`id -un`
|
|
LOGNAME=$USER
|
|
|
|
HOSTNAME=`/bin/hostname`
|
|
HISTSIZE=250
|
|
|
|
if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
|
|
INPUTRC=/etc/inputrc
|
|
fi
|
|
|
|
export PATH USER LOGNAME HOSTNAME HISTSIZE INPUTRC
|
|
|
|
# LS Colors
|
|
alias dir='ls'
|
|
alias ll='ls -l --color=tty'
|
|
alias ls='ls --color=tty'
|
|
|
|
# IPFire language settings
|
|
LANG=en_US.utf8
|
|
PS1='\[\033[1;33m\]\u\[\033[1;37m\]@\[\033[1;32m\]\h\[\033[1;37m\]:\[\033[1;31m\]\w \[\033[1;36m\]\$ \[\033[0m\]'
|
|
echo -n -e '\033%G'
|
|
|
|
export LANG PS1
|
|
# Enable colors for applications like mc....
|
|
export TERM=xterm-color
|