I run
kubectl edit deployment
to change the version of one of my pods (this commands opens a temp file in my text editor and then I usually edit and close this temp file) and even before I close this temp file in my text editor I can see the following note in my bash.
Edit cancelled, no changes made.
It was OK before I installed fish and I tried to switch to bash but it doesn't help either.
How can I fix it?
Things like this are most likely caused by it opening an editor that forks off instead of staying.
That means you'll want to set $EDITOR to an editor that does wait. E.g. nano
, vim
or emacs
should work, and e.g. if you use sublime text you'll have to use subl -w
to explicitly tell it to wait.
It's not quite clear which shell you're running at the moment. If it's bash, run export EDITOR="subl -w"
, in fish run set -gx EDITOR subl -w
(or "subl -w"
if you use fish < 3.0).