start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/env bash | |
| # file: ~/.virtualenvs/postmkvirtualenv | |
| # This hook is run after a new virtualenv is activated. | |
| # setup python interpretor and sitepackages | |
| # for Sublime Text's SublimeCodeIntel plugin. | |
| # codeintel looks in the root of any folder opened via `subl foldername` | |
| # for foldername/.codeintel/config | |
| # it also looks in ~/.codeintel/config |
| # found here: | |
| # http://stackoverflow.com/questions/862173/how-to-download-a-file-using-python-in-a-smarter-way | |
| # | |
| import sys | |
| import urllib2 | |
| from os.path import basename | |
| from urlparse import urlsplit | |
| def url2name(url): |