Skip to content

Commit

Permalink
Merge pull request holman#275 from caarlos0/improved-e
Browse files Browse the repository at this point in the history
e is now a one-liner
  • Loading branch information
caarlos0 committed Sep 21, 2016
2 parents ce8c94c + d51b1de commit 6c39c15
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bin/e
Expand Up @@ -13,9 +13,4 @@
# $ e .
# $ e /usr/local
# # => opens the specified directory in your editor

if [ "$1" = "" ] ; then
exec "$EDITOR" . > /tmp/editor-log 2>&1 &
else
exec "$EDITOR" "$1" > /tmp/editor-log 2>&1 &
fi
exec "$EDITOR" "${1:-.}" > /tmp/editor-log 2>&1 &

0 comments on commit 6c39c15

Please sign in to comment.