Skip to content

Instantly share code, notes, and snippets.

@duffney
Created June 14, 2023 22:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save duffney/b946824bd6b7fa2b50df8dfb5cbb9283 to your computer and use it in GitHub Desktop.
Save duffney/b946824bd6b7fa2b50df8dfb5cbb9283 to your computer and use it in GitHub Desktop.

zsh, oh-my-zsh, exa

sudo apt install zsh -y
chsh -s $(which zsh)

sudo apt install wget git
sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

sudo apt install exa

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

Install Oh my Posh

sudo wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -O /usr/local/bin/oh-my-posh
sudo chmod +x /usr/local/bin/oh-my-posh

sudo apt install unzip

Download the themes

mkdir ~/.poshthemes
wget https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/themes.zip -O ~/.poshthemes/themes.zip
unzip ~/.poshthemes/themes.zip -d ~/.poshthemes
chmod u+rw ~/.poshthemes/*.json
rm ~/.poshthemes/themes.zip

.zshrc edits

eval "$(oh-my-posh --init --shell zsh --config ~/.poshthemes/amro.omp.json)"

plugins=(
        git
        golang
        zsh-autosuggestions
        zsh-syntax-highlighting
)
if [ -x "$(command -v exa)" ]; then
    alias ls='exa --icons'
    alias la='exa --long --all --group --icons'
fi

Links

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment