Skip to content

Instantly share code, notes, and snippets.

@stibi
Created January 16, 2012 18:10
Show Gist options
  • Save stibi/1622094 to your computer and use it in GitHub Desktop.
Save stibi/1622094 to your computer and use it in GitHub Desktop.
# virtualenvwrapper
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python2.7
export WORKON_HOME=~/virtualenvs
source /usr/bin/virtualenvwrapper.sh
export PIP_VIRTUALENV_BASE=$WORKON_HOME
export PIP_RESPECT_VIRTUALENV=true
export M2_HOME=/opt/maven/
export M2=$M2_HOME/bin
source /etc/profile
source ~/.git_completion.sh
# Check for an interactive session
[ -z "$PS1" ] && return
# protoze blbnou xorg aplikace spoustene z konzole
xhost + >> /dev/null &&
fortune
echo
export EDITOR="vim"
export PATH=$PATH:/home/stibi/bin:/opt/google_appengine/
HISTFILE=~/.history
SAVEHIST=500
alias ls='ls -F --color=auto'
alias lsbs='ls -lrhS'
alias ll='ls -lah'
alias la='ls -a'
alias dfh='df -h'
alias ..='cd ..'
alias ...='cd ../..'
alias ....='cd ../../..'
alias g='egrep --color'
alias gi='egrep --color -i'
alias svim='sudo vim'
alias scat='sudo cat'
alias p='ping www.seznam.cz'
alias reload='source ~/.bashrc'
alias beat='mplayer -playlist /home/stibi/beat128.mp3.m3u'
# JIRA
alias tailjira='tail -f /opt/jira/atlassian-jira-enterprise-4.2.2-b589-standalone/logs/catalina.out'
#PS1='[\u@\h \W]\$ '
#PS1='[$(date +%H:%M)]•\e[0;32m\u\e[0m \w \$> '
#export PS1=' \e[0;32m\h\e[1;37m@\e[0;32m\u\e[0m•\W\$> '
#export PS1='\[\033[01;32m\]\u@\h \[\033[01;34m\]\W \$ \[\033[00m\]'
PS1="\n\[\e[32;1m\](\[\e[37;1m\]\u\[\e[32;1m\])-(\[\e[37;1m\]jobs:\j\[\e[32;1m\])-(\[\e[37;1m\]\w\[\e[32;1m\])\n(\[\[\e[37;1m\]!\!\[\e[32;1m\])-> \[\e[0m\]"
un () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) unrar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;
*.tgz) tar xvzf $1 ;;
*.zip) unzip $1 ;;
*.Z) uncompress $1 ;;
*.7z) 7z x $1 ;;
*) echo "don't know how to extract '$1'..." ;;
esac
else
echo "'$1' is not a valid file!"
fi
}
#export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=lcd'
export _JAVA_OPTIONS="-Dawt.useSystemAAFontSettings=lcd"
export JAVA_FONTS=/usr/share/fonts/TTF
complete -cf sudo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment