# ~/.bashrc: executed by bash(1) for non-login shells. # see /usr/share/doc/bash/examples/startup-files for examples export NNTPSERVER='localhost' #export EDITOR='vim' PATH="~/bin:/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games" ## Umlauts for german keyboards #export LANG=de_DE.ISO-8859-1 ## I set that in /etc/bash.bashrc to have that available for all users # If running interactively, then: if [ "$PS1" ]; then ## enable color support of ls and also add handy aliases eval `dircolors /home/arvid/.dircolors` #eval `dircolors /home/arvid/.dircolors_bw` alias ls='ls --color=auto ' alias ll='ls -l' alias la='ls -A' alias rm='rm -i' alias theke='ssh theke' alias godwin='ssh godwin.copyleft.de' alias asterix='ssh -l ifaw asterix.rz.tu-clausthal.de' alias troubadix='ssh -l ifaw troubadix.rz.tu-clausthal.de' alias trouble='finger trouble@noc.dfn.de' alias burn='cdrecord dev=0,3,0 -speed=4 -v' alias bmplayer='mplayer -rootwin' alias aterm='aterm -tr +sb -sh 80 -sl 1000 -termName xterm' fi ## function to use colors in prompt and design titlebar ## "case" is needed to not get an error on the console ## to make the first part work for aterm, too, ## I added '-termName xterm' to my aterm execution ;-) function myprompt { case $TERM in xterm*) local TITLEBAR='\[\033]0;\u@\h:\w\007\]' #local TITLEBAR='\[\033]0;\w\007\]' ;; *) local TITLEBAR='' ;; esac local WHITE="\[\033[1;37m\]" local GREY="\[\033[1;30m\]" local BLUE="\[\033[0;34m\]" local LIGHT_BLUE="\[\033[1;34\]" local GREEN="\[\033[0;32m\]" local GREEN_LIGHT="\[\033[1;32m\]" local CYAN="\[\033[0;36m\]" local CYAN_LIGHT="\[\033[1;36m\]" local RED="\[\033[0;31m\]" local RED_LIGHT="\[\033[1;31m\]" local PURPLE="\[\033[0;35m\]" local PURPLE_LIGHT="\[\033[1;35m\]" local BROWN="\[\033[0;33m\]" local YELLOW="\[\033[1;33m\]" local NORMAL="\[\033[0m\]" #PS1="${TITLEBAR}$CYAN\u$NORMAL@$RED\h:$NORMAL\w\[\033[0m\]$ " PS1="${TITLEBAR}$WHITE[$NORMAL\$(date +%H:%M)$WHITE] [$NORMAL\u@\h: \w\[\033[0m\]$WHITE]$NORMAL " ## here are some other prompt-examples I like in a way ## this one is with a clock inside #PS1="$TITLEBAR(\[\033[1;30m\]\$(date +%H:%M) \h:\w\[\033[0m\]) " #PS1="[${TITLEBAR}$NORMAL\w\[\033[0m\]] " #PS1="$WHITE-=[${TITLEBAR}$NORMAL\u@\h: $RED\w\[\033[0m\]$WHITE]=- " PS2='> ' PS4='+ ' } # load function proml myprompt