dotfiles
view .bashrc @ 5:f8789f33df8c
aliases -> functions in bashrc; minor changes in bashrc & inputrc
author | meillo@marmaro.de |
---|---|
date | Wed, 05 Sep 2007 00:21:17 +0200 |
parents | 68dd6ae11835 |
children | f4fd1276a8b3 |
line source
1 # markus schnalke -- http://marmaro.de
2 #
3 # modified standard bashrc of debian sarge
4 #
7 # ~/.bashrc: executed by bash(1) for non-login shells.
8 # see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
9 # for examples
11 # If not running interactively, don't do anything:
12 [ -z "$PS1" ] && return
15 # check the window size after each command and, if necessary,
16 # update the values of LINES and COLUMNS.
17 shopt -s checkwinsize
20 # enable colored ls output
21 eval "`dircolors -b $HOME/.dircolorsrc`"
24 # one history for all
25 shopt -s histappend
26 PROMPT_COMMAND='history -a'
27 export HISTCONTROL=ignoredups
28 # larger history
29 export HISTSIZE=100000
30 export HISTFILESIZE=$HISTSIZE
33 # enable programmable completion features (you don't need to enable
34 # this, if it's already enabled in /etc/bash.bashrc and /etc/profiles
35 # sources /etc/bash.bashrc).
36 if [ -f /etc/bash_completion ]; then
37 . /etc/bash_completion
38 fi
41 # If this is an xterm set the title to user@host:dir
42 case "$TERM" in
43 xterm*|rxvt*)
44 PROMPT_COMMAND=$PROMPT_COMMAND' ; echo -ne "\033]0;title---${USER}@${HOSTNAME}: ${PWD}\007"'
45 ;;
46 screen*)
47 PROMPT_COMMAND=$PROMPT_COMMAND' ; echo -ne "\033]0;screen---${USER}@${HOSTNAME}: ${PWD}\007"'
48 ;;
49 *)
50 ;;
51 esac
54 # command prompt
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 \$ '
58 # vars
60 export PATH=$PATH:/home/meillo/Prog/Shell/bin
62 export VISUAL=vim
63 export EDITOR=vim
65 export DEBEMAIL=meillo@marmaro.de
66 export DEBFULLNAME="markus schnalke"
70 # functions
72 function ls {
73 command ls -F --color=auto "$@"
74 }
75 function ll {
76 ls -l "$@"
77 }
78 function lh {
79 ls -lh "$@"
80 }
81 function la {
82 ls -A "$@"
83 }
85 function dh {
86 df -h "$@"
87 }
89 function cal {
90 command cal -m "$@"
91 }
92 function xpdf {
93 command xpdf -z page "$@" &
94 }
96 function du1 {
97 du -h --max-depth=1 --exclude=".?*" "$@"
98 }
99 function du2 {
100 du -h --max-depth=2 --exclude=".?*" "$@"
101 }
103 # aliases
105 #alias fireworks='wine /usr/share/Fireworks4/Fireworks\ 4.exe'
106 #alias stendhal='java -jar /home/meillo/Spiele/Stendhal/stendhal'