this configuration requires 2 modules from
zsh-users
:
I use this configuration without significant changes for a long time now, as it satisfies all the requirements that I have to comfortably use the Terminal.
Here a small sample:
In short, it has text highlighting, suggestions, git information, and a different style for python virtual environments.
-
To keep things simple, first Open a Terminal located in this folder
-
Install zsh if you don't already have it on the system:
sudo apt install zsh
-
Configure zsh as the default shell in the terminal emulator profile:
which zsh
returns the path of zsh that we need to replace /bin/bash or /usr/bin/bashdon't use:
chsh -s $(which zsh)
because we need the system to keep using your default shell -
Copy the .zshrc file from this folder and replace the one that was created for us zsh in our home:
- Make a backup of .zshrc in case something goes wrong:
cp ~/.zshrc ~/.zshrc_old
- Now:
(Linux)
cp ./linux/.zshrc ~/
(Mac)
cp ./mac/.zshrc ~/
-
Copy the .zsh folder to our home:
cp -r ./.zsh ~/
-
(Linux only) Copy the prompt_sarc_setup file to: /usr/share/zsh/functions/Prompts/
sudo cp ./prompt_sarc_setup /usr/share/zsh/functions/Prompts/
(and we put our password)
-
All that remains is to close and reopen the terminal
exit
and possibly [CTRL] + [SHIFT] + [T] to open ;)