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