From 47756633355ac3d56ba2efe7c35932c956e71327 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20G=C3=A4rtner?= Date: Tue, 4 Mar 2014 13:21:08 +0100 Subject: .functions: Add `a` alias for `atom` Closes #349. --- .functions | 10 ++++++++++ 1 file changed, 10 insertions(+) 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() { -- cgit v1.2.3