view .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
line wrap: on
line source

# markus schnalke -- http://marmaro.de
#
# modified standard bashrc of debian sarge
#


# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples

# If not running interactively, don't do anything:
[ -z "$PS1" ] && return

# check the window size after each command and, if necessary,
# update the values of LINES and COLUMNS.
shopt -s checkwinsize

# enable colored ls output
eval "`dircolors -b $HOME/.dircolorsrc`"

# command prompt
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    \$ '

# If this is an xterm set the title to user@host:dir
case "$TERM" in
xterm*|rxvt*)
    PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
    ;;
*)
    ;;
esac


# aliases

alias ls='ls -F --color=auto'

alias ll='ls -lF'
alias lh='ls -lhF'
alias la='ls -AF'

alias dh='df -h'

alias du1='du -h --max-depth=1 --exclude=".?*" '  # -> shellscript instead of alias
alias du2='du -h --max-depth=2 --exclude=".?*" '  # -> shellscript instead of alias

alias serveme='ssh meillo@192.168.0.100'

alias fireworks='wine /usr/share/Fireworks4/Fireworks\ 4.exe'
alias stendhal='java -jar /home/meillo/Spiele/Stendhal/stendhal'


# vars

export PATH=$PATH:/home/meillo/Prog/Shell/bin

export VISUAL=vim
export EDITOR=vim

export DEBEMAIL=meillo@marmaro.de
export DEBFULLNAME="markus schnalke"

export HISTSIZE=10000
export HISTFILESIZE=$HISTSIZE
export HISTCONTROL=ignoredups


# enable programmable completion features (you don't need to enable
# this, if it's already enabled in /etc/bash.bashrc and /etc/profiles
# sources /etc/bash.bashrc).
if [ -f /etc/bash_completion ]; then
    . /etc/bash_completion
fi