dotfiles

annotate .bashrc @ 3:4c1ead2dc501

xinitrc and screenrc added; code cleanups
author meillo@marmaro.de
date Wed, 25 Apr 2007 20:42:44 +0200
parents ed27560e11be
children 68dd6ae11835
rev   line source
meillo@3 1 # markus schnalke -- http://marmaro.de
meillo@3 2 #
meillo@3 3 # modified standard bashrc of debian sarge
meillo@3 4 #
meillo@3 5
meillo@3 6
meillo@1 7 # ~/.bashrc: executed by bash(1) for non-login shells.
meillo@1 8 # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
meillo@1 9 # for examples
meillo@1 10
meillo@1 11 # If not running interactively, don't do anything:
meillo@1 12 [ -z "$PS1" ] && return
meillo@1 13
meillo@1 14 # check the window size after each command and, if necessary,
meillo@1 15 # update the values of LINES and COLUMNS.
meillo@1 16 shopt -s checkwinsize
meillo@1 17
meillo@1 18 # enable colored ls output
meillo@1 19 eval "`dircolors -b $HOME/.dircolorsrc`"
meillo@1 20
meillo@1 21 # command prompt
meillo@1 22 PS1='\033[01;31m<\033[00m \h \033[01;31m|\033[00m \u \033[01;31m|\033[00m \w \033[01;31m>\033[00m\n \$ '
meillo@1 23
meillo@1 24 # If this is an xterm set the title to user@host:dir
meillo@1 25 case "$TERM" in
meillo@1 26 xterm*|rxvt*)
meillo@1 27 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
meillo@1 28 ;;
meillo@1 29 *)
meillo@1 30 ;;
meillo@1 31 esac
meillo@1 32
meillo@1 33
meillo@1 34 # aliases
meillo@1 35
meillo@1 36 alias ls='ls -F --color=auto'
meillo@1 37
meillo@1 38 alias ll='ls -lF'
meillo@1 39 alias lh='ls -lhF'
meillo@1 40 alias la='ls -AF'
meillo@1 41
meillo@1 42 alias dh='df -h'
meillo@1 43
meillo@3 44 alias du1='du -h --max-depth=1 --exclude=".?*" ' # -> shellscript instead of alias
meillo@3 45 alias du2='du -h --max-depth=2 --exclude=".?*" ' # -> shellscript instead of alias
meillo@1 46
meillo@1 47 alias serveme='ssh meillo@192.168.0.100'
meillo@1 48
meillo@1 49 alias fireworks='wine /usr/share/Fireworks4/Fireworks\ 4.exe'
meillo@1 50 alias stendhal='java -jar /home/meillo/Spiele/Stendhal/stendhal'
meillo@1 51
meillo@1 52
meillo@1 53 # vars
meillo@1 54
meillo@1 55 export PATH=$PATH:/home/meillo/Prog/Shell/bin
meillo@1 56
meillo@1 57 export VISUAL=vim
meillo@1 58 export EDITOR=vim
meillo@1 59
meillo@1 60 export DEBEMAIL=meillo@marmaro.de
meillo@1 61 export DEBFULLNAME="markus schnalke"
meillo@1 62
meillo@1 63 export HISTSIZE=10000
meillo@1 64 export HISTFILESIZE=$HISTSIZE
meillo@1 65 export HISTCONTROL=ignoredups
meillo@1 66
meillo@1 67
meillo@1 68 # enable programmable completion features (you don't need to enable
meillo@1 69 # this, if it's already enabled in /etc/bash.bashrc and /etc/profiles
meillo@1 70 # sources /etc/bash.bashrc).
meillo@1 71 if [ -f /etc/bash_completion ]; then
meillo@1 72 . /etc/bash_completion
meillo@1 73 fi