I have a minikube K8s 1 node cluster on my Windows 10 pc. I can SSH into this cluster using minikube ssh
.
The problem that I am experiencing is that I can't use the arrow keys to bring back the previous command. I did some looking around and diagnostics:
set -o | grep history
gavehistory on
echo $HISTFILE
gave/home/docker/.bash_history
. This is indeed in the home folder of the user and the file was present afterexit
ing and executingminikube ssh
againecho $HISTSIZE
andecho $HISTFILESIZE
both gave 500echo $SHELL
gave/bin/bash
All these things tell me that command history should be enabled, but it doesn't seem to be the case.
I tried using both Powershell and cmd to run minikube ssh
, both with and without Windows Terminal.
Both PowerShell and cmd themselves have a working command history, but once SSHing using minikube, the history in the bash shell doesn't work.
Does anyone know how to get the command history to work after executing minikube shh
?
Edit:
I have tried minikube ssh --native-ssh=false
, but this didn't change anything.