This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Automatic activation and deactivation of virtualenvs using virtualenvwrapper | |
# whereby the virtualenv name must match the current directory name | |
function cd | |
{ | |
# Perform the regular cd | |
builtin cd "$@" | |
# Iterate through the current directory, heading into each parent directory | |
# until we find a .virtualenv file or land in the top directory (/) | |
test_directory=$(pwd) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env osascript -l JavaScript | |
function run(argv) { | |
// Obtain the terminal application | |
terminal = Application('Terminal'); | |
// Set the font | |
terminal.defaultSettings.fontName = 'Source Code Pro for Powerline'; | |
terminal.defaultSettings.fontSize = 18; | |
terminal.defaultSettings.fontAntialiasing = true; |
NewerOlder