Added pip and cabal upgrade
This commit is contained in:
5
pip-upgrade
Normal file
5
pip-upgrade
Normal 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
7
zshrc
@@ -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 (){
|
||||
|
Reference in New Issue
Block a user