Skip to content

Instantly share code, notes, and snippets.

@tsabat
Last active May 28, 2022
Embed
What would you like to do?
Getting oh-my-zsh to work in Ubuntu

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 bash`

and then restart

sudo shutdown -r 0

This problem is explained in depth in this issue

@dimpiax
Copy link

dimpiax commented Oct 23, 2017

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

@bin9003
Copy link

bin9003 commented Nov 11, 2017

棒棒的!!

@physhik
Copy link

physhik commented Nov 27, 2017

Thanks!

@webhat
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.

@mateusdotcc
Copy link

mateusdotcc commented Dec 11, 2017

Thanks 👍

@Ahm4d-94
Copy link

Ahm4d-94 commented Jan 8, 2018

thanks bro 👍

@li19860
Copy link

li19860 commented Jan 11, 2018

thanks bro.

@sahota14
Copy link

sahota14 commented Jan 13, 2018

Thank you!

@aramatev
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

OR

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

@HCrane
Copy link

HCrane commented Feb 21, 2018

Thank you!

@lauragift21
Copy link

lauragift21 commented Feb 28, 2018

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

@saidziani
Copy link

saidziani commented Apr 10, 2018

Thanks a lot!

@jmau111
Copy link

jmau111 commented Apr 26, 2018

very nice and still useflul !!!

@DennisMufasa
Copy link

DennisMufasa commented May 7, 2018

worked like a charm!

@blueshell2017
Copy link

blueshell2017 commented Jun 1, 2018

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

gitpetrova commented Jul 26, 2018

thanks a lot!

@javiros
Copy link

javiros commented Aug 19, 2018

Fantastic! Thank you!!

@rishabhdeepsingh
Copy link

rishabhdeepsingh commented Sep 7, 2018

Thanks a LOT Bro

Copy link

ghost commented Sep 13, 2018

cheers!

Copy link

ghost commented Sep 26, 2018

Thank you

@Mr-Quinn
Copy link

Mr-Quinn commented Sep 26, 2018

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

@themoralpanda
Copy link

themoralpanda commented Nov 9, 2018

Thanks for the share :)

@franciscodara
Copy link

franciscodara commented Feb 24, 2019

Guys, how uninstall this tutor? Help me please!

@sinscary
Copy link

sinscary commented Mar 19, 2019

Awesome man

@mrroot5
Copy link

mrroot5 commented Apr 16, 2019

@ilhamdoanggg
Copy link

ilhamdoanggg commented Oct 9, 2019

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

@elduglas
Copy link

elduglas commented Jan 22, 2021

👍 Thanks so much!!!

@DNXie
Copy link

DNXie commented Aug 1, 2021

Thanks so much! It worked!

@TristanK27
Copy link

TristanK27 commented Dec 26, 2021

Thank you, you're the man

@JhouplayBR
Copy link

JhouplayBR commented Mar 2, 2022

thanks dude, still working

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