Created
November 3, 2012 05:33
-
-
Save leopic/4006170 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# aliases | |
alias l1="ls -ogh" | |
alias l2="ls -1Fsh --group-directories-first" | |
alias log="git log --no-merges" | |
alias untar="tar -xzvf" | |
# branch in prompt: TODO, make it werk in Mac. | |
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;34m\]\h\[\033[00m\]:\[\033[00;31m\]\W\[\033[00m\]$(__git_ps1)\$ ' | |
# Z: z is the new j, yo. | |
if [ -d ~/Apps/z ]; then | |
. ~/Apps/z/z.sh | |
else | |
echo "No Z, cloning" | |
cd ~ && mkdir Apps && git clone git://github.com/rupa/z.git | |
. ~/Apps/z/z.sh | |
fi | |
# If git vundle doesn't exist, clone it. | |
if [ ! -d ~/.vim/bundle/vundle ]; then | |
cd ~/ && git clone https://github.com/gmarik/vundle.git ~/.vim/bundle/vundle | |
fi | |
# exports | |
export EDITOR='vim' | |
bind 'set completion-ignore-case on' | |
# Ubuntu only | |
os=`uname` | |
if [[ ${os} == "Linux" ]]; then | |
export JDK_HOME="/usr/lib/jvm/jdk1.6.0_32" | |
export JAVA_HOME="/usr/lib/jvm/jdk1.6.0_32" | |
PATH=$HOME/Apps/Sublime\ Text\ 2/:"$PATH" | |
alias apre="sudo /etc/init.d/apache2 restart" | |
alias aplog="tail -f /var/log/apache2/error.log" | |
alias ij="/home/leopic/Apps/idea-IU-95.627/bin/./idea.sh" | |
#if [ -f ~/.bash_profile ]; then | |
#. ~/.bash_profile | |
#fi | |
fi | |
# Handy to have | |
# key is corrupt, permissions to open | |
alias fixkey="sudo chmod 600 ~/.ssh/id_rsa ~/.ssh/id_rsa.pub" | |
# Perm'ing your key: TODO, make it werk. | |
# ssh-add | |
# exec ssh-agent bash | |
# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment