Skip to content

Instantly share code, notes, and snippets.

@Kiritow
Last active October 3, 2024 05:06
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
" >> ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment