Skip to content

Instantly share code, notes, and snippets.

@davsket
Created November 16, 2011 18:52
Show Gist options
  • Save davsket/1370963 to your computer and use it in GitHub Desktop.
Save davsket/1370963 to your computer and use it in GitHub Desktop.
ZSH Problem
function vc() {
workon $@;
cdvirtualenv;
cd $@;
}
function vcr() {
vc $@;
python manage.py runserver;
}
function vcrr() {
ifconfig -L en1;
vc $@;
python manage.py runserver 0.0.0.0:8000;
}
function vcc() {
vc $@;
cd _res;
compass watch;
}
function superv (){
vcr $@;
osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down';
osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "vcc"';
osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "t" using command down';
osascript -e 'tell application "System Events" to tell process "Terminal" to keystroke "vc"';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment