aboutsummaryrefslogtreecommitdiffstats
path: root/.functions
diff options
context:
space:
mode:
authorgregstallings <gregstallings@gmail.com>2013-09-23 11:14:54 +0200
committerMathias Bynens <mathias@qiwi.be>2013-09-23 11:15:36 +0200
commit6c98b40f4d9b692863e4e58cfcb355058d5b8544 (patch)
tree9692b51e1cc654bf25f64daa85e038c53b156848 /.functions
parent9b7620e32208f811fd4c3c2353f41ec687731432 (diff)
downloaddotfiles-6c98b40f4d9b692863e4e58cfcb355058d5b8544.tar.gz
dotfiles-6c98b40f4d9b692863e4e58cfcb355058d5b8544.tar.bz2
dotfiles-6c98b40f4d9b692863e4e58cfcb355058d5b8544.zip
.functions: Add `o` to `open` stuff
Closes #245.
Diffstat (limited to '.functions')
-rw-r--r--.functions10
1 files changed, 10 insertions, 0 deletions
diff --git a/.functions b/.functions
index 7d2a83d..4a1e407 100644
--- a/.functions
+++ b/.functions
@@ -281,3 +281,13 @@ function v() {
vim "$@"
fi
}
+
+# `o` with no arguments opens current directory, otherwise opens the given
+# location
+function o() {
+ if [ $# -eq 0 ]; then
+ open .
+ else
+ open "$@"
+ fi
+}