Skip to content
Browse files

.functions: Add `a` alias for `atom`

Closes #349.
  • Loading branch information...
1 parent 90a0c75 commit 47756633355ac3d56ba2efe7c35932c956e71327 @ChristianGaertner ChristianGaertner committed with Mar 4, 2014
Showing with 10 additions and 0 deletions.
  1. +10 −0 .functions
View
10 .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() {

0 comments on commit 4775663

Please sign in to comment.
Something went wrong with that request. Please try again.