aboutsummaryrefslogtreecommitdiffstats
path: root/.functions
diff options
context:
space:
mode:
authorChristian Gärtner <christiangaertner.film@googlemail.com>2014-03-04 13:21:08 +0100
committerMathias Bynens <mathias@qiwi.be>2014-03-04 13:30:06 +0100
commit47756633355ac3d56ba2efe7c35932c956e71327 (patch)
tree86dde8a8a2613109a3544bcb2632f1fe986a0ef1 /.functions
parent90a0c750bb6b8ee230be32202c407a87e0fb3d73 (diff)
downloaddotfiles-47756633355ac3d56ba2efe7c35932c956e71327.tar.gz
dotfiles-47756633355ac3d56ba2efe7c35932c956e71327.tar.bz2
dotfiles-47756633355ac3d56ba2efe7c35932c956e71327.zip
.functions: Add `a` alias for `atom`
Closes #349.
Diffstat (limited to '.functions')
-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() {