diff options
-rw-r--r-- | .aliases | 1 | ||||
-rw-r--r-- | .functions | 10 |
2 files changed, 10 insertions, 1 deletions
@@ -15,7 +15,6 @@ alias g="git" alias h="history" alias j="jobs" alias v="vim" -alias m="mate ." alias s="subl ." alias o="open" alias oo="open ." @@ -251,3 +251,13 @@ function gi() { local IFS=, 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 +} |