aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.functions10
1 files changed, 10 insertions, 0 deletions
diff --git a/.functions b/.functions
index 94c5d46..d4f1204 100644
--- a/.functions
+++ b/.functions
@@ -272,6 +272,16 @@ function s() {
fi
}
+# `a` with no arguments opens the current directory in Atom Editor, otherwise
+# opens the given location
+function a() {
+ if [ $# -eq 0 ]; then
+ atom .
+ else
+ atom "$@"
+ fi
+}
+
# `v` with no arguments opens the current directory in Vim, otherwise opens the
# given location
function v() {