yesterday i realized i could put

if [[ "$TERM_PROGRAM" == "vscode" ]]; then
export EDITOR='code --wait'
else
export EDITOR='nano'
fi

in my .bashrc so now doing interactive git stuff is way nicer

like if i'm making a commit or doing an interactive rebase from the vscode integrated terminal, the temporary file pops up in the editor i'm already using, it's very nice

@monorail does it wait until you close the buffer or just for when you save

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.