Skip to content

Commit

Permalink
adds m->o
Browse files Browse the repository at this point in the history
  • Loading branch information
addyosmani committed Jan 25, 2014
1 parent 827389f commit 4cfdd33
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .functions
Expand Up @@ -233,6 +233,47 @@ function gi() {
eval npm install --save-dev grunt-{"$*"}
}

# `m` with no arguments opens the current directory in TextMate, otherwise
# opens the given location
function m() {
if [ $# -eq 0 ]; then
mate .
else
mate "$@"
fi
}

# `s` with no arguments opens the current directory in Sublime Text, otherwise
# opens the given location
function s() {
if [ $# -eq 0 ]; then
subl .
else
subl "$@"
fi
}

# `v` with no arguments opens the current directory in Vim, otherwise opens the
# given location
function v() {
if [ $# -eq 0 ]; then
vim .
else
vim "$@"
fi
}

# `o` with no arguments opens current directory, otherwise opens the given
# location
function o() {
if [ $# -eq 0 ]; then
open .
else
open "$@"
fi
}


# Launch installed browsers for a specific URL
# Usage: browsers "http://www.google.com"
function browsers(){
Expand Down

0 comments on commit 4cfdd33

Please sign in to comment.