feat(starship): add starship cross-shell prompt

This commit is contained in:
2022-05-27 23:38:01 +08:00
parent 39dd5b7a7b
commit 96f291e4d8
2 changed files with 44 additions and 0 deletions

View File

@@ -42,6 +42,9 @@ Thats it! we have successfully created a symlink for `.gitconfig` ,and a syml
### tmux ### tmux
`stow --dotfiles -vSt ~ tmux` `stow --dotfiles -vSt ~ tmux`
### starship
`stow --dotfiles -vSt ~/.config starship`
## About me ## About me

41
starship/starship.toml Normal file
View File

@@ -0,0 +1,41 @@
[battery]
disabled = true
[[battery.display]] # "bold red" style and discharging_symbol when capacity is between 0% and 10%
threshold = 20
style = "bold red"
discharging_symbol = " "
[[battery.display]] # "bold yellow" style and 💦 symbol when capacity is between 10% and 30%
threshold = 30
style = "bold yellow"
[directory]
fish_style_pwd_dir_length = 1
truncation_symbol = "…/"
[hostname]
ssh_only = true
format = "on [$hostname](bold red) "
disabled = false
[shell]
fish_indicator = ""
powershell_indicator = "_"
unknown_indicator = "mystery shell"
style = "cyan bold"
disabled = false
[status]
disabled = false
[time]
style = "gray bold"
disabled = true
[username]
style_user = "white bold"
style_root = "red bold"
disabled = false
show_always = true