Skip to content

Instantly share code, notes, and snippets.

@garrytrinder
Last active December 19, 2020 10:40
Show Gist options
  • Save garrytrinder/3a651a34c9e0268eea6f88c22cc78134 to your computer and use it in GitHub Desktop.
Save garrytrinder/3a651a34c9e0268eea6f88c22cc78134 to your computer and use it in GitHub Desktop.
oh-my-zsh setup
# Path to your oh-my-zsh installation.
export ZSH="/home/garrytrinder/.oh-my-zsh"
COMPLETION_WAITING_DOTS="true"
ZSH_THEME="spaceship"
SPACESHIP_PROMPT_ORDER=(
dir # Current directory section
git # Git section (git_branch + git_status)
package # Package version
node # Node.js section
dotnet # .NET section
ruby # Ruby section
exec_time # Execution time
line_sep # Line break
battery # Battery level and status
jobs # Background jobs indicator
exit_code # Exit code section
char # Prompt character
)
# See: https://denysdovhan.com/spaceship-prompt/docs/Options.html#order
# Node Version Manager (NVM)
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion"
# Azure CLI tab completion
source /etc/bash_completion.d/azure-cli
# oh-my-zsh plugins
plugins=(git zsh-autosuggestions zsh-syntax-highlighting)
# begin m365_comp completion
. <(m365_comp --completion)
# end m365_comp completion
source $ZSH/oh-my-zsh.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment