
To enable version control information, the vcs_info function is used. Let’s add git information to the first line. With a 2-line prompt, there is plenty of room for extra info. zshrc, so removing that makes the file quite a bit simpler. There is some GNU and Debian-specific configuration in the Kali Linux. Excellent!īut can we make it a little better? Of course! Customizing zsh It worked! I now have syntax highlighting, path completions, changing directories with just the path (no cd needed), autocompletions, command result on the right side and a 2-line prompt. I installed Kali Linux 2020.3 as a VM using Parallels and quickly grabbed that. Now I was convinced, time to switch.Ī quick chsh -s /bin/zsh and I was running. The release announcement mentioned that Kali would be switching its default shell to zsh also. I really loved the idea of having the informational part of the prompt on another line from the typed command. Wow! I had seen some interesting themes using Oh My Zsh, but this layout really caputured my attention. Then I saw the release announcement for Kali Linux 2020.3. I would jump into zsh occasionally, but still not quite ready to change the default. Pretty simple, but an upgrade over the bash prompt I was using. Next is the current path, showing at most 3 levels. Handy! Otherwise, a green checkmark is displayed. If the previous shell command returned an error, the error number is displayed in red at the front of the prompt.
