Skip to content
This repository has been archived by the owner on Jul 5, 2023. It is now read-only.

Commit

Permalink
e is now a one-liner
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Sep 21, 2016
1 parent ce8c94c commit d51b1de
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions bin/e
Original file line number Diff line number Diff line change
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 d51b1de

Please sign in to comment.