Skip to content

Instantly share code, notes, and snippets.

@huj13k4n9
Last active November 16, 2022 16:00
Show Gist options
  • Save huj13k4n9/4887f807144faef618c84bab283f33b6 to your computer and use it in GitHub Desktop.
Save huj13k4n9/4887f807144faef618c84bab283f33b6 to your computer and use it in GitHub Desktop.
# sh -c "$(curl -fsSL https://cdn.jsdelivr.net/gh/ohmyzsh/ohmyzsh@master/tools/install.sh)"
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# Install Powerlevel10k Theme
git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
sed -i "s/ZSH_THEME=\"robbyrussell\"/ZSH_THEME=\"powerlevel10k\/powerlevel10k\"/g" ~/.zshrc
# Install zsh plugins
# git clone https://github.91chi.fun/https://github.com/zsh-users/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
# git clone https://github.91chi.fun/https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-autosuggestions.git ${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=(git)/plugins=(git extract sudo zsh-autosuggestions zsh-syntax-highlighting)/g" ~/.zshrc
# Add aliases
echo 'alias pc="proxychains4"' >> ~/.zshrc
echo 'alias py="python"' >> ~/.zshrc
echo 'alias py3="python3"' >> ~/.zshrc
# Apply changes
source ~/.zshrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment