aboutsummaryrefslogtreecommitdiffstats
path: root/.functions
diff options
context:
space:
mode:
Diffstat (limited to '.functions')
-rw-r--r--.functions9
1 files changed, 9 insertions, 0 deletions
diff --git a/.functions b/.functions
index cf64dc6..40ef656 100644
--- a/.functions
+++ b/.functions
@@ -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
+}