diff --git a/.config/starship.toml b/.config/starship.toml index e0fdcd3..f4df3cf 100644 --- a/.config/starship.toml +++ b/.config/starship.toml @@ -56,7 +56,7 @@ style = "150" [username] style_user = 'white bold' style_root = 'black bold' -format = '[$user]($style) ' +format = '[$user]($style)' disabled = false show_always = true diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index b57fbc2..5a149ca 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -81,6 +81,13 @@ install_vim_plugins() { git clone https://github.com/cespare/vim-toml.git } +change_starship_character() { + # shellcheck disable=SC2039 + if [[ "$USER" != root ]]; then + sed -i 's/#/\\$/g' "$HOME"/.config/starship.toml + fi +} + #install_nix #configure_vim @@ -90,3 +97,4 @@ install_vim_plugins() { install_pathogen install_vim_plugins +change_starship_character