snwh / ubuntu-post-install

A set of post-installation shell scripts for Ubuntu
GNU General Public License v3.0
694 stars 284 forks source link

Feature request: Install shells such as fish/zsh. #20

Open sahilarora535 opened 5 years ago

sahilarora535 commented 5 years ago

It would be helpful to have an option to install shells such as fish shell, zsh, etc.

agucova commented 5 years ago

I added the package fish to the install list and made a custom fish_shellfunction to system_configure:

function fish_shell {
     chsh --shell $(which fish) $USER // Make fish the default shell.
     curl -L https://get.oh-my.fish | fish // Install Oh My Fish
     fish -c "omf update; and omf install l; and omf theme l; and mkdir ~/.config/fish" // Configure my Oh My Fish theme
     echo "if status --is-interactive ; screenfetch -w; end" > ~/.config/fish/config.fish // To add lines to config.fish
}