- Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"Zsh is already your Mac's shell. This adds themes, plugins and a better prompt.
- Open your settings file to pick a theme or plugins
open -e ~/.zshrcChange the ZSH_THEME line, save, then open a new terminal window.
Check it worked
- Check Oh My Zsh is loaded
echo $ZSHYou should see a path ending in .oh-my-zsh.
Undo it
- Remove Oh My Zsh
uninstall_oh_my_zsh
- Install ZshNeeds sudo
sudo apt install -y zsh - Make Zsh your default shell
chsh -s $(which zsh)Log out and back in for this to take effect.
- Install Oh My Zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
Check it worked
- Check your shell
echo $SHELLYou should see /usr/bin/zsh.
Undo it
- Go back to Bash
uninstall_oh_my_zsh chsh -s $(which bash)
- Install PowerShell 7
winget install Microsoft.PowerShellWindows comes with the older PowerShell 5. Open "PowerShell 7" from the Start menu afterwards.
- Create your profile (your settings file)
if (!(Test-Path $PROFILE)) { New-Item -Path $PROFILE -ItemType File -Force } - Add a nicer prompt with Oh My Posh
winget install JanDeDobbeleer.OhMyPosh Add-Content $PROFILE 'oh-my-posh init pwsh | Invoke-Expression'Open a new PowerShell 7 window to see it.
Check it worked
- Check your PowerShell version
$PSVersionTable.PSVersionThe Major number should be 7.
Undo it
- Remove Oh My Posh
winget uninstall JanDeDobbeleer.OhMyPoshThen delete the oh-my-posh line from your profile with `notepad $PROFILE`.