Add starship prompt

This commit is contained in:
Tobias Reisinger 2022-03-28 13:28:38 +02:00
parent 1b39fc3592
commit 2963ec0ad4
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 102 additions and 10 deletions

View file

@ -12,6 +12,7 @@ fi
# to know which specific one was loaded, run: echo $RANDOM_THEME
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="serguzim"
[ -x "$(command -v starship)" ] && ZSH_THEME=""
# Set list of themes to pick from when loading at random
# Setting this variable when ZSH_THEME=random will cause zsh to load
@ -42,10 +43,10 @@ DISABLE_AUTO_UPDATE="false"
# DISABLE_LS_COLORS="true"
# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"
DISABLE_AUTO_TITLE="true"
# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"
ENABLE_CORRECTION="true"
# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"
@ -61,7 +62,7 @@ DISABLE_AUTO_UPDATE="false"
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# or set a custom format using the strftime function format specifications,
# see 'man strftime' for details.
# HIST_STAMPS="yyyy-mm-dd"
HIST_STAMPS="yyyy-mm-dd"
# Would you like to use another custom folder than $ZSH/custom?
ZSH_CUSTOM=$ZDOTDIR/custom
@ -78,11 +79,9 @@ plugins=(
'cp'
'docker'
'docker-compose'
'encode64'
'extract'
'git'
'git-auto-status'
'httpie'
'jump'
'laravel5'
'rust'
@ -108,3 +107,5 @@ export HISTFILE="$HOME/.cache/zsh_history"
# Load zsh-syntax-highlighting; should be last.
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null
[ -x "$(command -v starship)" ] && eval "$(starship init zsh)"