Updated save_dotfiles function

This commit is contained in:
Veit Heller
2014-07-20 21:26:42 +02:00
parent d35ef9692a
commit 5ab0c74f34
2 changed files with 19 additions and 17 deletions

21
zshrc
View File

@@ -25,11 +25,11 @@ alias g++="g++-mp-4.9"
alias qmake4="/opt/local/bin/qmake"
alias qmake="/usr/local/Qt-5.3.0/bin/qmake"
alias python="python3.3"
alias cdtan="cd ~/Documents/Code/Github/Detanglement/src"
alias cdpy="cd ~/Documents/Code/Github/AudioPython"
alias cdtan="cd ~/Documents/Code/Github/development/Detanglement/src"
alias cdpy="cd ~/Documents/Code/Github/development/AudioPython"
alias cdpc="cd ~/Documents/Code/PrivCode/"
alias cdl="cd ~/Documents/Code/LiveCodingEditor"
alias cdg="cd ~/Documents/Code/Github"
alias cdg="cd ~/Documents/Code/Github/development"
alias emptytrash="sudo rm -rfv /Volumes/*/.Trashes; sudo rm -rfv ~/.Trash; sudo rm -rfv /private/var/log/asl/*.asl"
alias dud="du -d 1"
alias loc="cloc *"
@@ -104,13 +104,14 @@ pinfo(){
}
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
local DOTPATH=~/Documents/Code/Github/development/.dotfiles/
cp ~/.bash_profile ${DOTPATH}bash_profile
cp ~/.ghci ${DOTPATH}ghci
cp ~/.gitignore ${DOTPATH}gitignore
cp ~/.gitconfig ${DOTPATH}gitconfig
cp ~/.pythonrc ${DOTPATH}pythonrc
cp ~/.vimrc ${DOTPATH}vimrc
cp ~/.zshrc ${DOTPATH}zshrc
}
upgrade () {