commit 0caa856ac63b142344e9cc49bbde1172a0ab2405 parent 186c37889de708ca9a7fbdd9bc430d908925ad3b Author: Ed van Bruggen <edvb54@gmail.com> Date: Thu, 17 Sep 2015 16:52:40 -0700 Bin: Add ed file to replace ed function in edium.sh Also add functionality to launch vim.sh file if in current directory Diffstat:
bin/ed | | | 13 | +++++++++++++ |
bin/edium.sh | | | 9 | --------- |
2 files changed, 13 insertions(+), 9 deletions(-)
diff --git a/bin/ed b/bin/ed @@ -0,0 +1,13 @@ +#!/usr/bin/env bash + +# EDit with your EDITOR + +if [[ "$@" == "" ]]; then + if [ -f .vim.sh ]; then + ./.vim.sh + else + $EDITOR . + fi +else + $EDITOR "$@" +fi diff --git a/bin/edium.sh b/bin/edium.sh @@ -1,14 +1,5 @@ #!/usr/bin/env bash -# ed: EDit with your EDITOR -ed() { - if [[ "$@" == "" ]]; then - $EDITOR . - else - $EDITOR "$@" - fi -} - # ED: Rotate between EDITORs ED() { local EDITOR_new