Skip to content

Instantly share code, notes, and snippets.

@knobik
Last active August 18, 2023 11:28
Show Gist options
  • Save knobik/cc16eb7c967ad5eb74b070f83d6d7665 to your computer and use it in GitHub Desktop.
Save knobik/cc16eb7c967ad5eb74b070f83d6d7665 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# install micro-editor
curl https://getmic.ro | bash && sudo mv micro /usr/bin
# install zsh and curl
sudo apt update && sudo apt install -y zsh curl
# install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended
chsh -s $(which zsh)
# install antibody
zsh -c "curl -sfL git.io/antibody | sudo sh -s - -b /usr/local/bin"
# configure
touch ~/.z
echo "mafredri/zsh-async
rupa/z
zsh-users/zsh-completions
zsh-users/zsh-autosuggestions
# these should be last!
#sindresorhus/pure
zdharma-continuum/fast-syntax-highlighting
zsh-users/zsh-history-substring-search" >> ~/.zsh_plugins.txt
echo "export PROMPT='%({\$fg{yellow}%}.)\$USER@%{\$fg[white]%}%M \${ret_status} %{\$fg[cyan]%}%c%{\$reset_color%} \$(git_prompt_info)'" >> ~/.zshrc
echo "source <(antibody init)
antibody bundle < ~/.zsh_plugins.txt" >> ~/.zshrc
zsh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment