Skip to content

Instantly share code, notes, and snippets.

@touero
Last active November 19, 2023 14:34
Show Gist options
  • Save touero/4aa43740e74dfc9bff7c69a14e3fe761 to your computer and use it in GitHub Desktop.
Save touero/4aa43740e74dfc9bff7c69a14e3fe761 to your computer and use it in GitHub Desktop.
The very first settings of zsh.
#!/bin/bash
#!chmod +x setup.sh
proxy_address="your_proxy_address"
proxy_port="your_proxy_port"
export http_proxy="http://${proxy_address}:${proxy_port}"
export https_proxy="http://${proxy_address}:${proxy_port}"
sudo apt update && sudo apt upgrade
sudo apt install zsh -y
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh || true
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting &&
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions &&
sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/g' ~/.zshrc
chsh -s /bin/zsh
git config --global user.name "username"
git config --global user.email "your email"
unset http_proxy
unset https_proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment