diff options
-rw-r--r-- | .aliases | 1 | ||||
-rw-r--r-- | .functions | 15 |
2 files changed, 13 insertions, 3 deletions
@@ -14,7 +14,6 @@ alias p="cd ~/Projects" alias g="git" alias h="history" alias j="jobs" -alias v="vim" alias o="open" alias oo="open ." @@ -261,8 +261,9 @@ function m() { mate "$@" fi } -# `s` with no arguments opens the current directory in Sublime, otherwise opens -# the given location + +# `s` with no arguments opens the current directory in Sublime Text, otherwise +# opens the given location function s() { if [ $# -eq 0 ]; then subl . @@ -270,3 +271,13 @@ function s() { 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 +} |