So, first you should run these two commands: $ sudo apt-get update $ sudo apt-get upgrade. Now you will be able to install Zsh properly, running: $ sudo apt-get install zsh. When the installation is done, run this: $ zsh. This will walk you through some basic configuration for zsh. 4.
FILES. /etc/zlogout (installation-specific - /etc is the default) -1 as zsh is not bash - it has an improved order of startup files The correct place for many environment variables is ~/.,zshenv zsh is clearer what the files are for. Also ~/.zshrc is not called in all cases.Step 2: Configuring the .zshrc file The .zshrc file contains the script that is run when you start a new zsh shell (rc stands for "run commands"). So if you make changes to this file you have to start a new shell to see them take effect. You can customise your terminal by running open ~/.zshrc to open the .zshrc file in your system's root Installing oh-my-zsh will create/update your ~/.zshrc file – located in your home directory – which defines your zsh configuration. We will edit the ~/.zshrc file throughout this tutorial to customise our terminal. 2. Download a Nerd-Font# Next, download a Nerd-font of your choice. Here is a basic list for the system bashrc: /etc/bashrc (Redhat, Fedora, etc) /etc/bash.bashrc (Debian, Ubuntu, Linux Mint, Backtrack, Kali etc) /etc/bash.bashrc.local (Suse, OpenSuse, etc) Then there is the private single-user bashrc, which, for the most part is stored in ~/.bashrc for basically every distro Check if any copy of the zshrc still exists. This didn't happen in my case, but if by chance there is a version of the .zshrc somewhere (notably if your code editor of choice autosaves files to a specific location), there is a small possibility of it still existing somewhere. To find it, run this: sudo find . -name ".zshrc"
Seems like there should be some cleaner way to test if I'm just reloading via source /.zshrc or if .zshrc is being executed for a new instance of zsh that was just loaded into memory. linux shell
Open Spotlight Search, Type Terminal and open it, Now type cd ~ to move to your user folder, Type ls -a, to see all the files (-a option to see hidden files), You should be able to see the .zshrc file, if not you do not have it. You can type just one command to view the files content, % cat ~/.zshrc. If the file is not present you will get theUse the command nano ~/.zshrc or any preferred text editor. Change the Theme: Locate the line in your Zshrc file that sets the Zsh theme. It often starts with ZSH_THEME= followed by the theme name in single or double quotes. Replace the Theme: Replace the current theme name with the name of the theme you want to use.