* try to change starship character for not privileged user as dollar sign
This commit is contained in:
@ -56,7 +56,7 @@ style = "150"
|
|||||||
[username]
|
[username]
|
||||||
style_user = 'white bold'
|
style_user = 'white bold'
|
||||||
style_root = 'black bold'
|
style_root = 'black bold'
|
||||||
format = '[$user]($style) '
|
format = '[$user]($style)'
|
||||||
disabled = false
|
disabled = false
|
||||||
show_always = true
|
show_always = true
|
||||||
|
|
||||||
|
@ -81,6 +81,13 @@ install_vim_plugins() {
|
|||||||
git clone https://github.com/cespare/vim-toml.git
|
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
|
#install_nix
|
||||||
|
|
||||||
#configure_vim
|
#configure_vim
|
||||||
@ -90,3 +97,4 @@ install_vim_plugins() {
|
|||||||
|
|
||||||
install_pathogen
|
install_pathogen
|
||||||
install_vim_plugins
|
install_vim_plugins
|
||||||
|
change_starship_character
|
||||||
|
Reference in New Issue
Block a user