If you want to alternate between multiple themes on a regular basis, change the ZSH_THEME= parameter to random. For example, if you want to set the agnoster theme as your ZSH style, you need to replace robbyrussel with agnoster. You can change the theme by replacing this text in the line ZSH_THEME= with the one you like. You can see in the screenshot above, that the default theme is robbyrussel. Once you found a theme that you like, open the ~/.zshrc file with any code editor. You can preview the theme in your browser. Also, the themes with white and light words on a black background are not recommended for users whose vision is compromised or who use headless servers without a monitor. It’s not wise to use rainbow colors or other hard-to-read colors. To view the list of the available themes, open your browser and navigate to: The default directory for Oh-My-Zsh Theme is ~/.oh-my-zsh/themes/. Then reload Oh My ZSH plugin by typing: source ~/.zshrc Configuring the Oh-My-Zsh Theme plugins=(python pip)Īfter changing the theme, use Ctrl-O to save and Ctrl-X to exit. For example, to activate the python plugin, simply add the following line to the ~/.zshrc file. When you’ve finished browsing the available plugins and found the one you want to use, add its name to the plugin() function in the /.zshrc file to activate it. Open your browser and go to GitHub to get a list of all available plugins.
![iterm ubuntu iterm ubuntu](https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/screenshots/raycast_light.png)
![iterm ubuntu iterm ubuntu](https://raw.githubusercontent.com/mbadolato/iTerm2-Color-Schemes/master/screenshots/rouge_2.png)
The installation will complete within a few seconds. So you don’t need to log out or reboot the server. This command will set up Zsh as the default set shell for all users.
#Iterm ubuntu install#
You can install the plugin by typing this command in your terminal: sudo apt install git-core curl fonts-powerline sh -c "$(curl -fsSL )" On-My-Zsh plugin provides some amazing shell enhancements to ZSH. In our case, it is the exact location of ZSH. The whereis command prints out exactly what its name suggests, the path to a terminal program or script. You can confirm this by printing the location of zsh using the which command: whereis szh The default directory where your ZSH is installed is /usr/bin. Check your path again or try to reinstall the ZSH using this command: sudo apt install zsh & sudo dpkg-reconfigure dash & sudo reboot If you do not see the ZSH version number after executing the zsh –version command, it means that something went wrong during installation. Your version number may be different from the one in this picture. The Version command is a useful way of checking which version you’re currently using but it won’t give any information if something isn’t installed or just partly installed.
![iterm ubuntu iterm ubuntu](https://www.zwodnik.com/media/images/iterm2_os-x_3.png)
This command will print out the version number of ZSH on the server. Now that ZSH is installed, you can check the version number with the zsh –version command. You can always change these settings later, but for now, we don’t need to configure them. The installation process will go over the basic configuration of ZSH. The command above will take some time to install. Press Y and hit Enter to confirm your selection.
![iterm ubuntu iterm ubuntu](https://i.ytimg.com/vi/tdELyamJNLM/maxresdefault.jpg)
sudo apt install zshĭuring the installation process, you will be asked if you would like to continue with the Z shell installation. Now that your system is updated, you are all set to install ZSH with the apt command. Sudo apt install build-essential curl file git
#Iterm ubuntu update#
sudo apt update & sudo apt dist-upgrade -y
#Iterm ubuntu software#
Updating the Systemįirst of all, we need to update the system to make sure we have the latest software and security patches. A non-root with root privileges is configured on the server.A fresh install of Ubuntu 22.04 or Ubuntu 20.04 on the server.