diff options
Diffstat (limited to '.functions')
-rw-r--r-- | .functions | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 +} |