diff --git a/zsh/zshrc b/zsh/zshrc index abee614..0068c81 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -89,6 +89,13 @@ function vim() { fi } +function edit() { + local editor + printf -v editor "${EDITOR} \"\$@\"" + echo $editor + eval "${editor}" +} + path+=($HOME/.anyenv/bin) eval "$(anyenv init -)" path+=($(yarn global bin))