How do I change default shell when using zero-to-jupyterhub-k8s helm chart

30 views Asked by At

The default shell when deploying https://github.com/jupyterhub/zero-to-jupyterhub-k8s is sh. The problem is that the arrows don't work.

e.g. when you want to see list through cmd history or you want to fix a typo in the command. You get ^[[A when pressing arrow up.

This can be fixed by changing the shell from sh to bash.

Sadly I can't use the answers from How can the terminal in Jupyter automatically run bash instead of sh when using this helm chart.

1

There are 1 answers

0
Koroslak On

add this to singleuser config:

singleuser:
  extraEnv:
    SHELL: "/bin/bash"