1

I would like to get some practice using different shells (zsh and ksh, etc...) What is the best way to set it up so I can create a shortcut that will launch a terminal with the desired shell? I'd rather not set up another account or have to chsh each time if possible, but would love to see all my options. As a bonus I would love to see links to resources for learning various different shells.

Scott Goodgame
  • 2,646
  • 16
  • 20

1 Answers1

1

The shortcuts would depend on what terminal you are using. However, most accept the -e option to specify what program to run. Therefore, for zsh you could do:

x-terminal-emulator -e zsh

Or, this approach to have a login shell:

x-terminal-emulator -e 'zsh -l'

You could then add these as aliases on your default shell or, if you prefer to have a launcher on Ubuntu's dash, create a file inside ~/.local/share/applications with the extension .desktop and these lines:

[Desktop Entry]
Name=Zsh-Terminal
Comment=Use zsh in the command line
Exec=zsh
Terminal=true
Icon=utilities-terminal
Type=Application

Make this file executable and drag it to the dash.

Read more about the difference between login and non login shell.

aguslr
  • 1,836