Skip to content

Instantly share code, notes, and snippets.

@NathanaelGandhi
Created July 24, 2023 04:20
Show Gist options
  • Save NathanaelGandhi/a0d28986279f3c121564cd16141e3b47 to your computer and use it in GitHub Desktop.
Save NathanaelGandhi/a0d28986279f3c121564cd16141e3b47 to your computer and use it in GitHub Desktop.
rice-container-zsh
#!/bin/bash -eu
apt-get install -y wget zsh fonts-powerline && \
echo "[config-zsh] installing oh-my-zsh" && \
wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O - | zsh || true && \
echo "[config-zsh] installing oh-my-zsh plugins" && \
git clone https://github.com/zsh-users/zsh-autosuggestions ${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 zsh-autosuggestions zsh-syntax-highlighting)|g' ~/.zshrc && \
echo "[config-zsh] setting theme to agnoster" && \
sed -i 's|ZSH_THEME="robbyrussell"|ZSH_THEME="agnoster"|g' ~/.zshrc && \
sed -i 's|echo -n "%{%f%}"|echo -n "\n[%D{%H:%M:%S}] >%{%f%}"|g' ~/.oh-my-zsh/themes/agnoster.zsh-theme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment