Skip to content

Instantly share code, notes, and snippets.

@SOSANA
Last active May 1, 2023 01:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SOSANA/e4714f7ee1cea347bfd566e3acff25bb to your computer and use it in GitHub Desktop.
Save SOSANA/e4714f7ee1cea347bfd566e3acff25bb to your computer and use it in GitHub Desktop.
install zsh, oh my zsh, and powerlevel10k on ubuntu

make sure updated dependencies sudo apt update

install zsh sudo apt install zsh

install oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

/usr/bin/zsh look over the .zshrc file to select plugins, themes, and options.

check zsh version zsh --version

check which shell is currrently running echo $0

check shell default path echo $SHELL # /bin/bash

make zsh your default shell, need to logout and log back into Ubuntu for terminal to take effect chsh -s /usr/bin/zsh

could also use this command chsh -s $(which zsh)

switch default back to bash need to logout and log back into Ubuntu for terminal to take effect chsh -s /bin/bash

install powerlevel10k for Oh my zsh
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

close and open a new terminal, ff the p10k configuration wizard does not start automatically, you can run the configuration wizard the powerlevel10k theme with this command:
p10k configure

Now, edit the ZSH_THEME in ~/.zshrc file into:
ZSH_THEME="powerlevel10k/powerlevel10k"

download zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions

download zsh-autocomplete
git clone https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete

download zsh-exa
git clone https://github.com/ptavares/zsh-exa.git $ZSH_CUSTOM/plugins/zsh-exa

download zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting

Edit ~/.zshrc file find plugins=(git) replace plugins=(git) with:
plugins=(git zsh-autosuggestions zsh-syntax-highlighting zsh-autocomplete zsh-exa)

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