Skip to content

Instantly share code, notes, and snippets.

@geblanco
Last active June 19, 2023 17:13
Show Gist options
  • Save geblanco/2d8fde1326f85f7866af22da66560f90 to your computer and use it in GitHub Desktop.
Save geblanco/2d8fde1326f85f7866af22da66560f90 to your computer and use it in GitHub Desktop.
Minimal setup to get zsh and companions working. Installer for fresh servers...
#/bin/bash
# Install:
# - zsh (requires sudo)
# - oh-my-zsh
# - zsh-autosuggestions plugin
# - conda-zsh-completion plugin
# - custom themes
# - custom zshrc and styles
sudo apt --yes --force-yes install zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/esc/conda-zsh-completion ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/conda-zsh-completion
git clone https://github.com/geblanco/mod-zsh-themes /tmp/mod-zsh-themes
cd /tmp/mod-zsh-themes
make install PREFIX=${ZSH_CUSTOM:=~/.oh-my-zsh}
cd -
rm -rf /tmp/mod-zsh-themes
curl https://raw.githubusercontent.com/geblanco/dot_files/desktop/.zshrc -o ~/.zshrc
mkdir -p ~/.config/zshrc/
curl https://raw.githubusercontent.com/geblanco/dot_files/desktop/.config/zshrc/zstyles -o ~/.config/zshrc/zstyles
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment