Skip to content

Instantly share code, notes, and snippets.

Last active December 25, 2023 19:16
Show Gist options
  • Save tsabat/1498393 to your computer and use it in GitHub Desktop.
Save tsabat/1498393 to your computer and use it in GitHub Desktop.
Getting oh-my-zsh to work in Ubuntu


apt-get install zsh
apt-get install git-core

Getting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh

wget -O - | zsh

and then you change your shell to zsh

chsh -s `which zsh`

and then restart

sudo shutdown -r 0

This problem is explained in depth in this issue

Copy link

dimpiax commented Oct 23, 2017

for AMI Linux, chsh -s $(which zsh) ec2-user

Copy link

bin9003 commented Nov 11, 2017


Copy link

physhik commented Nov 27, 2017


Copy link

webhat commented Dec 6, 2017

@Naatan the reason he probably does that is that window managers don't always pick up the changes automatically. Saying reboot rather than adding a procedure to install each window manager makes the instructions easier to follow.

Copy link

Thanks 👍

Copy link

Ahm4d-94 commented Jan 8, 2018

thanks bro 👍

Copy link

li19860 commented Jan 11, 2018

thanks bro.

Copy link

Thank you!

Copy link

aramatev commented Feb 15, 2018

You need the Powerline font to have your CLI with show git icons correctly
sudo apt install fonts-powerline


git clone --depth=1
# install
cd fonts

Copy link

HCrane commented Feb 21, 2018

Thank you!

Copy link

Thanks for this. How do I confirm it's working on my terminal?

Copy link

Thanks a lot!

Copy link

jmau111 commented Apr 26, 2018

very nice and still useflul !!!

Copy link

worked like a charm!

Copy link

well,thanks a lot,nearly there years later, this approach still works,but ,maybe use logout is well?shutdown -r 0 is very rough?hahhaha:)

Copy link

thanks a lot!

Copy link

javiros commented Aug 19, 2018

Fantastic! Thank you!!

Copy link

Thanks a LOT Bro

Copy link

ghost commented Sep 13, 2018


Copy link

ghost commented Sep 26, 2018

Thank you

Copy link

Thank you... zsh &&.oh-my-zsh is the first apt I install on any new system!

Copy link

Thanks for the share :)

Copy link

Guys, how uninstall this tutor? Help me please!

Copy link

Awesome man

Copy link

mrroot5 commented Apr 16, 2019

Copy link

some problem after a week not shutdown my pc
and than i restart it back to bash normal, i use ubuntu 18-04 anyway
and here sudo shutdown -r 0 very nice solving

Copy link

👍 Thanks so much!!!

Copy link

DNXie commented Aug 1, 2021

Thanks so much! It worked!

Copy link

Thank you, you're the man

Copy link

thanks dude, still working

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