Skip to content

Commit

Permalink
.functions: Add m to open stuff in TextMate
Browse files Browse the repository at this point in the history
  • Loading branch information
goodtimeaj authored and mathiasbynens committed Sep 21, 2013
1 parent c8a48ee commit 3dc47ff
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 0 additions & 1 deletion .aliases
Original file line number Diff line number Diff line change
Expand Up @@ -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 ."
Expand Down
10 changes: 10 additions & 0 deletions .functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 3dc47ff

Please sign in to comment.