Skip to content

Instantly share code, notes, and snippets.

@fredlahde
Created December 28, 2020 19:16
Show Gist options
  • Save fredlahde/fe8551b3ef6e45b8b0b5c4d822536791 to your computer and use it in GitHub Desktop.
Save fredlahde/fe8551b3ef6e45b8b0b5c4d822536791 to your computer and use it in GitHub Desktop.
My .zshrc for ZSH with oh-my-zsh
# only relevant parts shown here
# Path to your oh-my-zsh installation.
export ZSH="/home/fredlahde/.oh-my-zsh"
# I'm using robbyrussell, mostly for its simplicity
ZSH_THEME="robbyrussell"
# I'm only using git as a plugin, for aliases and completion of git commands
plugins=(
git
)
# obligatory oh-my-zsh line
source $ZSH/oh-my-zsh.sh
# use 'xterm' as '$TERM' when using ssh.
# This improves compatibility on servers with bash or sh
alias ssh='TERM=xterm ssh'
# Overwrite the prompt provided by robbyrussell
# Changing the green/blue prompt to a white one
# On error ($? != 0), change prompt to red
# Remove the git part from the prompt, since it is too slow for me
export PS1='%(?:%{$reset_color%}➜ :%{%}➜ ) %{$reset_color%}%c%{$reset_color%} '
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment