dotfiles

annotate .bashrc @ 6:d7884728e836

rename .Xresources -> .Xdefaults
author meillo@marmaro.de
date Fri, 07 Sep 2007 23:26:38 +0200
parents 68dd6ae11835
children f4fd1276a8b3
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@5 14
meillo@1 15 # check the window size after each command and, if necessary,
meillo@1 16 # update the values of LINES and COLUMNS.
meillo@1 17 shopt -s checkwinsize
meillo@1 18
meillo@5 19
meillo@1 20 # enable colored ls output
meillo@1 21 eval "`dircolors -b $HOME/.dircolorsrc`"
meillo@1 22
meillo@5 23
meillo@4 24 # one history for all
meillo@4 25 shopt -s histappend
meillo@4 26 PROMPT_COMMAND='history -a'
meillo@5 27 export HISTCONTROL=ignoredups
meillo@5 28 # larger history
meillo@5 29 export HISTSIZE=100000
meillo@5 30 export HISTFILESIZE=$HISTSIZE
meillo@4 31
meillo@5 32
meillo@5 33 # enable programmable completion features (you don't need to enable
meillo@5 34 # this, if it's already enabled in /etc/bash.bashrc and /etc/profiles
meillo@5 35 # sources /etc/bash.bashrc).
meillo@5 36 if [ -f /etc/bash_completion ]; then
meillo@5 37 . /etc/bash_completion
meillo@5 38 fi
meillo@5 39
meillo@1 40
meillo@1 41 # If this is an xterm set the title to user@host:dir
meillo@1 42 case "$TERM" in
meillo@1 43 xterm*|rxvt*)
meillo@5 44 PROMPT_COMMAND=$PROMPT_COMMAND' ; echo -ne "\033]0;title---${USER}@${HOSTNAME}: ${PWD}\007"'
meillo@5 45 ;;
meillo@5 46 screen*)
meillo@5 47 PROMPT_COMMAND=$PROMPT_COMMAND' ; echo -ne "\033]0;screen---${USER}@${HOSTNAME}: ${PWD}\007"'
meillo@1 48 ;;
meillo@1 49 *)
meillo@1 50 ;;
meillo@1 51 esac
meillo@1 52
meillo@1 53
meillo@5 54 # command prompt
meillo@5 55 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 56
meillo@1 57
meillo@1 58 # vars
meillo@1 59
meillo@1 60 export PATH=$PATH:/home/meillo/Prog/Shell/bin
meillo@1 61
meillo@1 62 export VISUAL=vim
meillo@1 63 export EDITOR=vim
meillo@1 64
meillo@1 65 export DEBEMAIL=meillo@marmaro.de
meillo@1 66 export DEBFULLNAME="markus schnalke"
meillo@1 67
meillo@1 68
meillo@1 69
meillo@5 70 # functions
meillo@5 71
meillo@5 72 function ls {
meillo@5 73 command ls -F --color=auto "$@"
meillo@5 74 }
meillo@5 75 function ll {
meillo@5 76 ls -l "$@"
meillo@5 77 }
meillo@5 78 function lh {
meillo@5 79 ls -lh "$@"
meillo@5 80 }
meillo@5 81 function la {
meillo@5 82 ls -A "$@"
meillo@5 83 }
meillo@5 84
meillo@5 85 function dh {
meillo@5 86 df -h "$@"
meillo@5 87 }
meillo@5 88
meillo@5 89 function cal {
meillo@5 90 command cal -m "$@"
meillo@5 91 }
meillo@5 92 function xpdf {
meillo@5 93 command xpdf -z page "$@" &
meillo@5 94 }
meillo@5 95
meillo@5 96 function du1 {
meillo@5 97 du -h --max-depth=1 --exclude=".?*" "$@"
meillo@5 98 }
meillo@5 99 function du2 {
meillo@5 100 du -h --max-depth=2 --exclude=".?*" "$@"
meillo@5 101 }
meillo@5 102
meillo@5 103 # aliases
meillo@5 104
meillo@5 105 #alias fireworks='wine /usr/share/Fireworks4/Fireworks\ 4.exe'
meillo@5 106 #alias stendhal='java -jar /home/meillo/Spiele/Stendhal/stendhal'
meillo@5 107