Skip to content

Instantly share code, notes, and snippets.

@denyherianto
Last active February 22, 2024 01:07
Show Gist options
  • Select an option

  • Save denyherianto/8cb7d3b3028e9fdc94d792d07853d9ff to your computer and use it in GitHub Desktop.

Select an option

Save denyherianto/8cb7d3b3028e9fdc94d792d07853d9ff to your computer and use it in GitHub Desktop.
Install ZSH & Oh-My-Zsh.md

ZSH Installation

  1. Install ZSH

sudo apt install zsh

  1. Change Shell

chsh -s /usr/bin/zsh

  1. Choose option 2

oh-my-zsh Installation

  1. Download

sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

  1. Replace config

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc source ~/.zshrc

ZSH Config

ZSH_THEME="agnoster"
eval "$(starship init zsh)"

export VSCODE_DISABLE_PROC_READING=true

DockerResourcesBin="/mnt/c/Program Files/Docker/Docker/resources/bin"
export PATH=$PATH:$DockerResourcesBin
export GITLAB_AUTH_TOKEN=yhwbTutTEyCYrD2kaWsc

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"  # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"  # This loads nvm bash_completion

Starship Installation

  1. Install

curl -sS https://starship.rs/install.sh | sh

  1. Create config

nano ~/.config/starship.toml

https://gist.github.com/denyherianto/ae3135fd773d9961f6bab452fddecea0

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