Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
ZSH (using Oh My ZSH) on Manjaro Linux

ZSH (using Oh My ZSH) on Manjaro Linux

0. If ZSH is not already installed on your Manjaro system you can do it with the command:

sudo pacman -Syu zsh

You do not need to install manjaro-zsh-config and all the other related packages like zsh-syntax-highlighting, zsh-history-substring-search, zsh-autosuggestions, etc., as we will use Oh My Zsh.

1. Install Oh My ZSH

sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

or

sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"

2. Installation of two important plugins I can't live without

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

and

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

3. Configuring zsh

Modify the ~/.zshrc config file editting plugins section like this:

plugins=(
    git
    zsh-autosuggestions
    zsh-syntax-highlighting
)

Change the theme to agnoster:

ZSH_THEME="agnoster"

4. Logout/logon or apply the changes with:

source ~/.zshrc

5. Make zsh default if you haven't already:

chsh -s $(which zsh)

6. Enjoy!

@irvv17
Copy link

irvv17 commented Jan 26, 2021

Thanks, very helpful :)

@117503445
Copy link

117503445 commented Feb 25, 2021

  1. Configuring zsh ~./zshrc should be ~/.zshrc

@yovko
Copy link
Author

yovko commented Feb 25, 2021

1. Configuring zsh  ~./zshrc should be ~/.zshrc

Sure. Of course. Thanks!

@ANGlTHUB
Copy link

ANGlTHUB commented Apr 11, 2021

chsh -s $(which zsh)
Changing shell for an.
Password:
chsh: Shell not changed.

@ramy-gendy
Copy link

ramy-gendy commented Apr 16, 2021

Same issue, did you find a fix?

@yovko
Copy link
Author

yovko commented Apr 16, 2021

There is no need to change the shell in the Gnome edition of Manjaro as zsh is already the default one. I'm not sure if this is the case. Actually, the default zsh setup in the latest Manjaro/Gnome is wonderful, and I will not recommend Oh-My-ZSH anymore.

@ijuanfe
Copy link

ijuanfe commented Apr 21, 2021

Hello guys, do not forget that by default Manjaro uses the Konsole terminal. Open a Konsole > Settings > Configure Konsole... > Profiles > edit your current profile or create a new one > General > in Command add "/usr/bin/zsh" (without quotation marks). You probably are running bash shell by default in your Konsole profile. Do not forget to logout and login back to your Manjaro account to load the config. If it keeps printing "chsh: Shell not changed." maybe your shell is already Zsh, use the command "echo $0" to print your current shell and verify that.

@nojitsi
Copy link

nojitsi commented May 31, 2021

Thx!
Btw, above solution is correct!

@DesKevinMendez
Copy link

DesKevinMendez commented Jul 11, 2021

Hello guys, do not forget that by default Manjaro uses the Konsole terminal. Open a Konsole > Settings > Configure Konsole... > Profiles > edit your current profile or create a new one > General > in Command add "/usr/bin/zsh" (without quotation marks). You probably are running bash shell by default in your Konsole profile. Do not forget to logout and login back to your Manjaro account to load the config. If it keeps printing "chsh: Shell not changed." maybe your shell is already Zsh, use the command "echo $0" to print your current shell and verify that.

Thanks, it s working for me

@AltusJVR
Copy link

AltusJVR commented Aug 4, 2021

Hello guys, do not forget that by default Manjaro uses the Konsole terminal. Open a Konsole > Settings > Configure Konsole... > Profiles > edit your current profile or create a new one > General > in Command add "/usr/bin/zsh" (without quotation marks). You probably are running bash shell by default in your Konsole profile. Do not forget to logout and login back to your Manjaro account to load the config. If it keeps printing "chsh: Shell not changed." maybe your shell is already Zsh, use the command "echo $0" to print your current shell and verify that.

Thank you.

@harshil-darji
Copy link

harshil-darji commented Aug 24, 2021

Hello guys, do not forget that by default Manjaro uses the Konsole terminal. Open a Konsole > Settings > Configure Konsole... > Profiles > edit your current profile or create a new one > General > in Command add "/usr/bin/zsh" (without quotation marks). You probably are running bash shell by default in your Konsole profile. Do not forget to logout and login back to your Manjaro account to load the config. If it keeps printing "chsh: Shell not changed." maybe your shell is already Zsh, use the command "echo $0" to print your current shell and verify that.

Worked perfectly. Thanks!

@r3d-b0y
Copy link

r3d-b0y commented Aug 28, 2021

chsh -s $(which zsh)
Changing shell for an.
Password:
chsh: Shell not changed.

yep same with me as a working at XFCE not changing anymore in Manjaro 21.1.1

@Ali-Aref
Copy link

Ali-Aref commented Dec 13, 2021

Nice One!

@H2k-Dev
Copy link

H2k-Dev commented Mar 11, 2022

Ty :)

@gauraputu
Copy link

gauraputu commented Mar 20, 2022

chsh -s $(which zsh)
Changing shell for an.
Password:
chsh: Shell not changed.

that message means your default shell is already zsh, log out first then login again to apply the effect.

@swaroopRajwal
Copy link

swaroopRajwal commented Mar 23, 2022

if you guys are using manjaro xfce or any other distro where the default shell isn't zsh, go to the shell settings and check the check box where it shows the text Run a custom command instead of my shell and add custom command zsh

@newtonjose
Copy link

newtonjose commented Mar 31, 2022

Ty, keep sharing 🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment