diff options
-rw-r--r-- | .aliases | 1 | ||||
-rw-r--r-- | .functions | 9 |
2 files changed, 9 insertions, 1 deletions
@@ -15,7 +15,6 @@ alias g="git" alias h="history" alias j="jobs" alias v="vim" -alias s="subl ." alias o="open" alias oo="open ." @@ -261,3 +261,12 @@ function m() { mate "$@" fi } +# `s` with no arguments opens the current directory in Sublime, otherwise opens +# the given location +function s() { + if [ $# -eq 0 ]; then + subl . + else + subl "$@" + fi +} |