Compare commits

...

2 commits

Author SHA1 Message Date
e8441b3a53
Improve starship config 2022-03-28 16:44:40 +02:00
2963ec0ad4
Add starship prompt 2022-03-28 13:28:38 +02:00
4 changed files with 131 additions and 10 deletions

View file

@ -11,6 +11,7 @@ fi
# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-bash is loaded.
OSH_THEME="brainy"
[ -x "$(command -v starship)" ] && ZSH_THEME=""
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
@ -29,10 +30,10 @@ OSH_THEME="brainy"
# 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"
@ -88,3 +89,5 @@ shopt -s checkwinsize
source "$HOME/.config/environment"
[ -f "$HOME/.config/aliasrc" ] && source "$HOME/.config/aliasrc"
[ -x "$(command -v thefuck)" ] && eval $(thefuck --alias)
[ -x "$(command -v starship)" ] && eval "$(starship init bash)"

View file

@ -1,4 +1,12 @@
LANG=en_DE.UTF-8
LANGUAGE=en_DE:en_IE:en_GB:en
LC_ALL=
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_COLLATE=C
LC_TIME=de_DE.UTF-8
LC_MONETARY=de_DE.UTF-8
LC_NUMERIC=de_DE.UTF-8
LC_PAPER=de_DE.UTF-8
LC_MEASUREMENT=de_DE.UTF-8
LC_NAME=de_DE.UTF-8
LC_ADDRESS=de_DE.UTF-8
LC_TELEPHONE=de_DE.UTF-8
LC_ALL=

109
.config/starship.toml Normal file
View file

@ -0,0 +1,109 @@
format = """
[](blue)\
$time\
[](bg:purple fg:blue)\
$sudo$username$hostname$docker_context\
[](bg:green fg:purple)\
$directory\
[](bg:red fg:green)\
$git_branch$git_commit$git_state$git_status\
[](bg:#454158 fg:red)\
$fill\
[](bg:#454158 fg:yellow)\
$status$cmd_duration\
[](bg:yellow fg:cyan)\
$jobs\
[](cyan)
[](blue)\
$shell$character
"""
continuation_prompt = "[](blue)[ ](bg:blue)[](blue) "
[character]
success_symbol = "[ ](fg:blue bg:green)[](green)"
error_symbol = "[ ](fg:blue bg:red)[](red)"
vicmd_symbol = "[ ](fg:blue bg:cyan)[](cyan)"
[cmd_duration]
min_time = 0
show_notifications = true
show_milliseconds = true
style = "bg:yellow fg:black"
format = "[$duration祥]($style)"
[directory]
read_only = ""
truncation_length = 8
truncation_symbol = "…/"
style = "bg:green fg:black"
format = "[$read_only$path]($style)"
[docker_context]
style = "bg:purple"
symbol = ""
format = "[ $symbol$context]($style)"
[fill]
style = "bg:#454158"
symbol = " "
[git_branch]
symbol = ""
style = "bg:red fg:black"
format = '[ $symbol $branch ]($style)'
[git_commit]
style = "bg:red fg:black"
tag_disabled = false
tag_symbol = " "
format = '[\($hash$tag\) ]($style)'
[git_status]
style = "bg:red fg:black"
format = '[\[$all_status$ahead_behind\]]($style)'
[hostname]
ssh_only = false
style = "bg:purple"
format = "[@$hostname]($style)"
trim_at = ""
[jobs]
number_threshold = 1
style = "bg:cyan fg:black"
symbol = ""
format = "[$symbol$number]($style)"
[shell]
bash_indicator = '\$'
fish_indicator = ""
zsh_indicator = '%%'
powershell_indicator = ""
unknown_indicator = ""
style = "bg:blue"
format = '[$indicator]($style)'
disabled = false
[sudo]
style = "bg:purple"
symbol = ""
format = "[$symbol]($style)"
disabled = false
[status]
disabled = false
style = "bg:yellow fg:black"
format = "[$status ]($style)"
[time]
disabled = false
style = "bg:blue"
format = "[$time]($style)"
[username]
show_always = true
style_user = "bg:purple"
style_root = "bg:purple underline"
format = '[$user]($style)'

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)"