.functions: Add m to open stuff in TextMate

Closes #253.
This commit is contained in:
gregstallings
2013-09-21 16:21:16 +02:00
committed by Mathias Bynens
parent c8a48ee28c
commit 3dc47ffd55
2 changed files with 10 additions and 1 deletions
-1
View File
@@ -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 ."
+10
View File
@@ -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
}