Skip to content

Instantly share code, notes, and snippets.

@tsabat
Last active May 15, 2026 06:38
Show Gist options
  • Select an option

  • Save tsabat/1498393 to your computer and use it in GitHub Desktop.

Select an option

Save tsabat/1498393 to your computer and use it in GitHub Desktop.
Getting oh-my-zsh to work in Ubuntu

Prereq:

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 https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -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

@Ahm4d-94

Ahm4d-94 commented Jan 8, 2018

Copy link
Copy Markdown

thanks bro 👍

@li19860

li19860 commented Jan 11, 2018

Copy link
Copy Markdown

thanks bro.

@sahota14

Copy link
Copy Markdown

Thank you!

@aramatev

aramatev commented Feb 15, 2018

Copy link
Copy Markdown

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

OR

git clone https://github.com/powerline/fonts.git --depth=1
# install
cd fonts
./install.sh```

@HCrane

HCrane commented Feb 21, 2018

Copy link
Copy Markdown

Thank you!

@lauragift21

Copy link
Copy Markdown

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

@saidziani

Copy link
Copy Markdown

Thanks a lot!

ghost commented Apr 26, 2018

Copy link
Copy Markdown

very nice and still useflul !!!

@DennisMufasa

Copy link
Copy Markdown

worked like a charm!

@blueshell2017

Copy link
Copy Markdown

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:)

@gitpetrova

Copy link
Copy Markdown

thanks a lot!

@javiros

javiros commented Aug 19, 2018

Copy link
Copy Markdown

Fantastic! Thank you!!

@rishabhdeepsingh

Copy link
Copy Markdown

Thanks a LOT Bro

ghost commented Sep 13, 2018

Copy link
Copy Markdown

cheers!

ghost commented Sep 26, 2018

Copy link
Copy Markdown

Thank you

@Mr-Quinn

Copy link
Copy Markdown

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

@themoralpanda

Copy link
Copy Markdown

Thanks for the share :)

@franciscodara

Copy link
Copy Markdown

Guys, how uninstall this tutor? Help me please!

@sinscary

Copy link
Copy Markdown

Awesome man

@mrroot5

mrroot5 commented Apr 16, 2019

Copy link
Copy Markdown

@ilhamdoanggg

Copy link
Copy Markdown

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

@juario17

Copy link
Copy Markdown

👍 Thanks so much!!!

@DNXie

DNXie commented Aug 1, 2021

Copy link
Copy Markdown

Thanks so much! It worked!

@TristanK27

Copy link
Copy Markdown

Thank you, you're the man

@JhouplayBR

Copy link
Copy Markdown

thanks dude, still working

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