How to change the default shell from bash to fish on the webui?

I use the FISH shell as my default on almost every vm/container that I use. I was wondering if there is a way to PERMANENTLY change the webui to use the fish shell instead of bash?

Taking a quick look at the code, it doesn’t look like there is an option to persistently override that.

what about a global search and replce in the incus-ui direcotry that replaces bash with fish?

It would only be needed in one spot src/pages/instances/InstanceTerminal.tsx

So basically replace it here and recompile? I did look at the original (deb) file, and no .ts. files there. Any idea what the GENERATED .js file would be? Or is it simple enough to comple the webui? Nice directions page?

so if I clone, modify this path: incus-ui-canonical/src/pages/instances/InstanceTerminal.tsx at main · zabbly/incus-ui-canonical · GitHub change bash to fish, and then use dockerfile to build?

I think sed -i "s/bash/fish/g" /opt/incus/ui/assets/*Instance* should do the trick to modify the generated files.

1 Like

Thank you SO much! It works NICELY!

1 Like

This was a cool idea. I am glad it worked out.