Dies ist meine /etc/bash.bashrc auf Debian. Sie funktioniert auch als ~/.bashrc und darüber hinaus wahrscheinlich auf allen modernen Linux-Distros. Siehe auch die bash.aliases.
Viel Spaß damit wünscht
# System-wide .bashrc file for interactive bash(1) shells.
# If running interactively, then:
if [ "$PS1" ]; then
# set a fancy prompt (overwrite the one in /etc/profile)
PS1='\u@\h:\w\$ '
ROTH="\[\033[1;31m\]"
ROT="\[\033[0;31m\]"
GRUEN="\[\033[0;32m\]"
BLAU="\[\033[0;34m\]"
NOCOLOR="\[\033[0m\]"
[ "$UID" == "0" ] && USRCLR="$ROT\\u$NOCOLOR" || USRCLR="\\u"
PS1="$BLAU\$(date +%H:%M,%S)h$ROT@$BLAU\h $ROTH\j:\!:\# ${BLAU}[$GRUEN$USRCLR$ROT@$ROTH${debian_chroot:+($debian_chroot)}$GRUEN\w${BLAU}]\n$NOCOLOR# "
# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize
# enable bash completion in interactive shells
if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
# source some aliases
if [ -f /etc/bash.aliases ]; then
. /etc/bash.aliases
fi
fi
Disclaimer -
[system.ini] -
© Copyright
Diese Seite ist Teil von robertkehl.de