diff options
author | Christian Gärtner <christiangaertner.film@googlemail.com> | 2014-03-04 13:21:08 +0100 |
---|---|---|
committer | Mathias Bynens <mathias@qiwi.be> | 2014-03-04 13:30:06 +0100 |
commit | 47756633355ac3d56ba2efe7c35932c956e71327 (patch) | |
tree | 86dde8a8a2613109a3544bcb2632f1fe986a0ef1 /.functions | |
parent | 90a0c750bb6b8ee230be32202c407a87e0fb3d73 (diff) | |
download | dotfiles-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-- | .functions | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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() { |