Created
December 28, 2020 19:16
-
-
Save fredlahde/fe8551b3ef6e45b8b0b5c4d822536791 to your computer and use it in GitHub Desktop.
My .zshrc for ZSH with oh-my-zsh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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%}➜ :%{[01;31m%}➜ ) %{$reset_color%}%c%{$reset_color%} ' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment