dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit b83530c4cdb4c1a60bfbec8cbcc1e37f861710e0
parent 7c66019cebb5629ee698a79158ce622942f8d82f
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Thu,  5 Nov 2020 15:52:00 +0100

shell: set EDITOR to vimsent if running in Vim terminal

Former-commit-id: 064f98d7c0d2b7a26904148e90ef825e44f47543
Diffstat:
Mshell/env | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/shell/env b/shell/env @@ -1,7 +1,11 @@ #!/bin/sh # vim: foldmethod=marker foldlevel=0 export DOTFILES="$HOME/.dotfiles" -EDITOR="$(command -v vim)"; export EDITOR + +if [ -n "$VIM_TERMINAL" ]; then EDITOR="vimsend" +else EDITOR="$(command -v vim)"; fi +export EDITOR + export MUSIC_DIR="/Volumes/HDD/Music/iTunes/iTunes Media/Music" if command -v bat 1>/dev/null 2>&1 && [ -z "$VIMRUNTIME" ]; then export PAGER="bat"