Added pip and cabal upgrade

This commit is contained in:
Veit Heller
2015-02-04 17:24:24 +01:00
parent b39d3a65f1
commit 3983347657
3 changed files with 13 additions and 0 deletions

View File

@@ -18,3 +18,4 @@ vim:
zsh:
cp zshrc ~/.zshrc
cp pip-upgrade ~/.pip-upgrade

5
pip-upgrade Normal file
View File

@@ -0,0 +1,5 @@
import pip
from subprocess import call
for dist in pip.get_installed_distributions():
call("pip install --upgrade " + dist.project_name, shell=True)

7
zshrc
View File

@@ -25,6 +25,8 @@ export LC_ALL=$LANG
alias ..="cd .."
alias gcc="gcc-4.9"
alias g++="g++-4.9"
alias pupgrade="sudo python ~/.pip-upgrade"
alias cupgrade="cabal update; cabal list --simple-output --installed | awk '{print $1}' | uniq | xargs -I {} cabal install {} --reinstall"
alias psg="ps aux | grep -v grep | grep -i -e VSZ -e"
alias qmake="/usr/local/Cellar/qt5/5.3.2/bin/qmake"
alias lupdate="/usr/local/Cellar/qt5/5.3.2/bin/lupdate"
@@ -133,6 +135,7 @@ save_dotfiles(){
cp ~/.pythonrc ${DOTPATH}pythonrc
cp ~/.vimrc ${DOTPATH}vimrc
cp ~/.zshrc ${DOTPATH}zshrc
cp ~/.pip-upgrade ${DOTPATH}pip-upgrade
}
@@ -191,11 +194,15 @@ osx_upgrade_local () {
popd
osascript -e 'tell app "TextMate" to reload bundles'
fi
pupgrade
cupgrade
}
debian_upgrade_local (){
sudo apt-get update && sudo apt-get -u upgrade
sudo apt-get clean
pupgrade
cupgrade
}
osx_upgrade_remote (){