diff --git a/executable_dot_zshrc b/executable_dot_zshrc index 323b363..df7c0ea 100644 --- a/executable_dot_zshrc +++ b/executable_dot_zshrc @@ -22,6 +22,7 @@ PATH=$(echo "$PATH" | sed -e 's/\/mnt\/.*\?://g') # Set where history is saved and how much to save HISTFILE="$XDG_STATE_HOME/zsh/history" +[ ! -e $HISTFILE ] && mkdir -p "$XDG_STATE_HOME/zsh" && touch $HISTFILE HISTSIZE=10000 SAVEHIST=10000 @@ -44,6 +45,7 @@ zstyle ':completion:*' matcher-list '' 'm:{a-zA-Z}={A-Za-z}' zstyle ':completion:*' cache-path $XDG_CACHE_HOME/zsh/zcompcache # Move completions to XDG Dir +autoload -Uz compinit compinit -d "$XDG_CACHE_HOME"/zsh/zcompdump-"$ZSH_VERSION" diff --git a/private_dot_config/starship.toml b/private_dot_config/starship.toml index a7714c1..923d121 100644 --- a/private_dot_config/starship.toml +++ b/private_dot_config/starship.toml @@ -21,15 +21,17 @@ $nodejs\ $rust\ [](fg:bright-cyan bg:bright-green)\ $docker_context\ -[](fg:bright-green bg:bright-blue)\ -$time\ -[ ](fg:bright-blue)\ +[](fg:bright-green bg:bright-purple)\ +$python\ +[](fg:bright-purple)\ """ right_format = """ [](fg:bright-red) $status\ -[](bg:bright-red fg:bright-blue) +[](bg:bright-red fg:bright-blue)\ +$time\ +[](bg:bright-red fg:bright-blue)\ $cmd_duration\ $hostname\ [](fg:bright-blue) @@ -61,6 +63,7 @@ CentOS = " " NixOS = " " Windows = " " Macos = " " +Alpine = " " [directory] style = "bg:bright-red fg:black" @@ -165,3 +168,8 @@ format = "[ $symbol $status ]($style)" style="bg:bright-blue fg:black" ssh_symbol="@" format='[ $ssh_symbol$hostname ]($style)' + +[python] +style="bg:bright-purple fg:black" +symbol=" " +format='[${symbol}${pyenv_prefix}(${version} )(\($virtualenv\) )]($style)'