Skip to content

Instantly share code, notes, and snippets.

@retronbv
Created June 17, 2021 14:01
Show Gist options
  • Save retronbv/f5872552ab058bdfbabbca99a2012e77 to your computer and use it in GitHub Desktop.
Save retronbv/f5872552ab058bdfbabbca99a2012e77 to your computer and use it in GitHub Desktop.
install myzsh
# Set password for some sudo operations on your account
read -p "Do you know your linux password or would you like to set one? ('Y' to set) " -n 1 -r
if [[ "$REPLY" =~ ^[Yy]$ ]]; then
sudo passwd "$(whoami)"
fi
# You will need that passcode here
sudo apt install zsh && chsh -s $(which zsh)
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# After the above command is complete make sure to press "y" to set it as default terminal.
# Install powerlevel9k
git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k
# Install more stuff:
sudo apt install figlet
sudo apt install nms
sudo apt install lolcat
sudo pip install thefuck
read -p "Would you like to install other useful plugins? (howdoi, undollar ytdl, gdu, google-it, micro, nano) (y/n) " -n 1 -r
if [[ "$REPLY" =~ ^[Yy]$ ]]; then
npm i -g undollar google-it
sudo pip3 install howdoi
sudo pip3 install ytdl
sudo apt install nano
git clone https://github.com/bartobri/no-more-secrets.git
cd ./no-more-secrets
make nms
sudo make install
cd
curl -L https://github.com/dundee/gdu/releases/latest/download/gdu_linux_amd64.tgz | tar xz
chmod +x gdu_linux_amd64
sudo mv gdu_linux_amd64 /usr/bin/gdu
curl https://getmic.ro | bash
sudo apt install p7zip-full
fi
read -p "Would you like a set of useful aliases for your bash shell? (y/n) " -n 1 -r
if [[ "$REPLY" =~ ^[Yy]$ ]]; then
curl -L "https://gist.githubusercontent.com/Explosion-Scratch/db45e8bf644118d742f8686fd874fa7a/raw/" >> .bash_aliases
fi
# Fetch my config from github gist
curl -L "https://gist.githubusercontent.com/Explosion-Scratch/6415ff315fb179bd8b88414b871c4b88/raw/" >> ~/.zshrc
# Install plugins
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment