Added an update script

This commit is contained in:
Veit Heller
2014-07-07 18:59:21 +02:00
parent d8f9a4c972
commit 8c84ad5966
2 changed files with 21 additions and 2 deletions

12
zshrc
View File

@@ -18,7 +18,7 @@ bindkey -e
export PATH=$PATH:/opt/local/bin:/usr/local/lib/io:~/.cabal/bin
export MANPATH=$MANPATH:/opt/local/share/man
export INFOPATH=$INFOPATH:/opt/local/share/info
export PYTHONSARTUP=~/.pythonrc
export PYTHONSTARTUP=~/.pythonrc
export TERM=rxvt
alias gcc="gcc-mp-4.9"
alias g++="g++-mp-4.9"
@@ -126,3 +126,13 @@ update(){
sudo port upgrade outdated &> /dev/null
fi
}
save_dotfiles(){
cp ~/.bash_profile ~/Documents/Code/Github/.dotfiles/bash_profile
cp ~/.ghci ~/Documents/Code/Github/.dotfiles/ghci
cp ~/.gitignore ~/Documents/Code/Github/.dotfiles/gitignore
cp ~/.gitconfig ~/Documents/Code/Github/.dotfiles/gitconfig
cp ~/.pythonrc ~/Documents/Code/Github/.dotfiles/pythonrc
cp ~/.vimrc ~/Documents/Code/Github/.dotfiles/vimrc
cp ~/.zshrc ~/Documents/Code/Github/.dotfiles/zshrc
}