diff --git a/users/price/dots/.config/zsh/config/profile/profile/env.zsh b/users/price/dots/.config/zsh/config/profile/profile/env.zsh index db160adb..26ae71c0 100644 --- a/users/price/dots/.config/zsh/config/profile/profile/env.zsh +++ b/users/price/dots/.config/zsh/config/profile/profile/env.zsh @@ -123,9 +123,11 @@ fi new_manpager=less fi - export EDITOR="${EDITOR:-$new_editor}" - export VISUAL="${VISUAL:-$new_visual}" - export MANPAGER="${MANPAGER:-$new_manpager}" + if [[ -n "${new_editor}" ]]; then + export EDITOR="${new_editor}" + export VISUAL="${new_visual}" + export MANPAGER="${new_manpager}" + fi } ### Rust ### diff --git a/users/price/dots/.config/zsh/config/profile/profile/functions.zsh b/users/price/dots/.config/zsh/config/profile/profile/functions.zsh index eeed9a72..3b00728b 100644 --- a/users/price/dots/.config/zsh/config/profile/profile/functions.zsh +++ b/users/price/dots/.config/zsh/config/profile/profile/functions.zsh @@ -185,15 +185,11 @@ preexec() { # Editor with single letter e() { - if [[ "${EDITOR}" =~ "neovide*" ]]; then - neovide "${@}" - else - eval "${EDITOR} ${@}" - fi + eval "${EDITOR} ${@}" } # Open file with default program and detach o() { local in="${@}" xdg-open "${@}" & disown -} \ No newline at end of file +}