From 32eed6c325035efdeaa3a6404fa2d3e26ca6c4ff Mon Sep 17 00:00:00 2001 From: lub Date: Mon, 2 Jan 2023 03:02:58 +0100 Subject: [PATCH] never use code as default editor Just feels weird to popup a full blown IDE every time I do a git commit. I think auto-save acutally even breaks git commit, but didn't test it further. --- dotfiles/bash/.bashrc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/dotfiles/bash/.bashrc b/dotfiles/bash/.bashrc index ef91f72..6512736 100644 --- a/dotfiles/bash/.bashrc +++ b/dotfiles/bash/.bashrc @@ -9,10 +9,7 @@ export HISTSIZE=100000 export HISTFILESIZE=100000 export PATH="$HOME/.bin:$PATH" -# define a default editor -if [ -x "$(command -v code)" ]; then - export EDITOR='code -w' -elif [ -x "$(command -v vim)" ]; then +if [ -x "$(command -v vim)" ]; then export EDITOR=vim elif [ -x "$(command -v vi)" ]; then export EDITOR=vi