From fba3feb8fb1aa5093cf9432020ef71147ec9be83 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Sun, 19 Jun 2016 02:05:14 -0700 Subject: [PATCH] edit_script function --- dotfiles/lib/shellenv/functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dotfiles/lib/shellenv/functions.sh b/dotfiles/lib/shellenv/functions.sh index 318deecf..72a51af8 100644 --- a/dotfiles/lib/shellenv/functions.sh +++ b/dotfiles/lib/shellenv/functions.sh @@ -429,3 +429,7 @@ function python_module_exists { function set_default_prompt { python_module_exists powerline && set_powerline_prompt || set_my_prompt } + +function edit_script { + $EDITOR "$(which $1)" +}