Skip to content

Instantly share code, notes, and snippets.

@Kiritow
Created May 10, 2024 13:47
Show Gist options
  • Save Kiritow/a2dff4d733c308a425fb5ce4c9c42cb0 to your computer and use it in GitHub Desktop.
Save Kiritow/a2dff4d733c308a425fb5ce4c9c42cb0 to your computer and use it in GitHub Desktop.
oh-my-zsh fresh install

Install omz and dependencies

#!/bin/bash
sudo apt update && sudo apt install -y zsh curl git
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Install Plugins

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

sed -i 's/^plugins=.*/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)\nDISABLE_AUTO_UPDATE="true"/g' ~/.zshrc
sed -i 's#^ZSH_THEME=.*#ZSH_THEME="powerlevel10k/powerlevel10k"#g' ~/.zshrc
echo `unsetopt share_history
setopt appendhistory
setopt incappendhistory

export PATH=$PATH:/usr/local/go/bin:/usr/local/node/bin
export PATH=$PATH:~/go/bin
` >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment