Skip to content

Commit

Permalink
.functions: Add s to open stuff in Sublime Text
Browse files Browse the repository at this point in the history
  • Loading branch information
goodtimeaj authored and mathiasbynens committed Sep 21, 2013
1 parent 3dc47ff commit 6dd0179
Show file tree
Hide file tree
Showing 2 changed files with 9 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 s="subl ."
alias o="open"
alias oo="open ."

Expand Down
9 changes: 9 additions & 0 deletions .functions
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 6dd0179

Please sign in to comment.