Skip to content

Instantly share code, notes, and snippets.

@anthonyray
Last active September 21, 2024 04:56
Show Gist options
  • Save anthonyray/08f805138c2b37c2554b777ea96513f2 to your computer and use it in GitHub Desktop.
Save anthonyray/08f805138c2b37c2554b777ea96513f2 to your computer and use it in GitHub Desktop.
Setting up OhMyZsh on a rapsberry Pi
  1. Connect to your raspberry Pi with SSH
  2. Install zsh : sudo apt-get update && sudo apt-get install zsh
  3. Edit your passwd configuration file to tell which shell to use for user pi : sudo vim /etc/passwd and change /bin/bash and /bin/zsh
  4. Reconnect to your raspberry, and check that zsh is the shell with echo $0.
  5. Switch to root : sudo su
  6. Install OhMyZsh : sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  7. Disconnect from your instance and reconnect it.
@joshjohanning
Copy link

@InfiniteCoder01 What version of git is it using? It looks like a git error.

Try updating it.

https://raspberrypi.stackexchange.com/questions/107533/my-apt-is-broken-illegal-instruction

@InfiniteCoder01
Copy link

I've reinstalled my system and it worked

@bencastan
Copy link

You can also do step 3 as:
#chsh -i /bin/zsh
Logout of the session and then log back in it should have changed.

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