dotfiles

annotate .bashrc @ 4:68dd6ae11835

lots of minor adjustments; some major things in bashrc & inputrc
author meillo@marmaro.de
date Tue, 04 Sep 2007 22:04:31 +0200
parents 4c1ead2dc501
children f8789f33df8c
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@4 21 # one history for all
meillo@4 22 shopt -s histappend
meillo@4 23 PROMPT_COMMAND='history -a'
meillo@4 24
meillo@1 25 # command prompt
meillo@1 26 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 27
meillo@1 28 # If this is an xterm set the title to user@host:dir
meillo@1 29 case "$TERM" in
meillo@1 30 xterm*|rxvt*)
meillo@1 31 PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
meillo@1 32 ;;
meillo@1 33 *)
meillo@1 34 ;;
meillo@1 35 esac
meillo@1 36
meillo@1 37
meillo@1 38 # aliases
meillo@1 39
meillo@1 40 alias ls='ls -F --color=auto'
meillo@1 41 alias ll='ls -lF'
meillo@1 42 alias lh='ls -lhF'
meillo@1 43 alias la='ls -AF'
meillo@1 44
meillo@1 45 alias dh='df -h'
meillo@1 46
meillo@4 47 # standard options
meillo@4 48 alias cal='cal -m'
meillo@4 49 alias xpdf='xpdf -z page'
meillo@4 50
meillo@4 51 alias serveme='ssh meillo@192.168.0.100'
meillo@4 52
meillo@3 53 alias du1='du -h --max-depth=1 --exclude=".?*" ' # -> shellscript instead of alias
meillo@3 54 alias du2='du -h --max-depth=2 --exclude=".?*" ' # -> shellscript instead of alias
meillo@1 55
meillo@4 56 #alias fireworks='wine /usr/share/Fireworks4/Fireworks\ 4.exe'
meillo@4 57 #alias stendhal='java -jar /home/meillo/Spiele/Stendhal/stendhal'
meillo@1 58
meillo@1 59
meillo@1 60 # vars
meillo@1 61
meillo@1 62 export PATH=$PATH:/home/meillo/Prog/Shell/bin
meillo@1 63
meillo@1 64 export VISUAL=vim
meillo@1 65 export EDITOR=vim
meillo@1 66
meillo@1 67 export DEBEMAIL=meillo@marmaro.de
meillo@1 68 export DEBFULLNAME="markus schnalke"
meillo@1 69
meillo@1 70 export HISTSIZE=10000
meillo@1 71 export HISTFILESIZE=$HISTSIZE
meillo@1 72 export HISTCONTROL=ignoredups
meillo@1 73
meillo@1 74
meillo@1 75 # enable programmable completion features (you don't need to enable
meillo@1 76 # this, if it's already enabled in /etc/bash.bashrc and /etc/profiles
meillo@1 77 # sources /etc/bash.bashrc).
meillo@1 78 if [ -f /etc/bash_completion ]; then
meillo@1 79 . /etc/bash_completion
meillo@1 80 fi