startship prompt reformat
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
add_newline = true
|
add_newline = false
|
||||||
format = """${custom.docker_compose}$git_branch$git_status$character"""
|
format = """$fill${custom.docker_compose}$git_branch$git_status $username[@](red)$hostname $time
|
||||||
right_format = """$username[@](red)$hostname $cmd_duration$time $directory"""
|
$character"""
|
||||||
|
right_format = """$cmd_duration$directory"""
|
||||||
|
|
||||||
[git_branch]
|
[git_branch]
|
||||||
format = "[$branch]($style) "
|
format = "[$branch]($style) "
|
||||||
@@ -22,6 +23,7 @@ style = "blue bold"
|
|||||||
truncation_length = 5
|
truncation_length = 5
|
||||||
truncate_to_repo = false
|
truncate_to_repo = false
|
||||||
style = "cyan bold"
|
style = "cyan bold"
|
||||||
|
format = "[$path]($style)[$read_only]($read_only_style)"
|
||||||
|
|
||||||
[cmd_duration]
|
[cmd_duration]
|
||||||
min_time = 5_000
|
min_time = 5_000
|
||||||
@@ -33,6 +35,9 @@ disabled = false
|
|||||||
format = "[$time]($style)"
|
format = "[$time]($style)"
|
||||||
style = "green"
|
style = "green"
|
||||||
|
|
||||||
|
[fill]
|
||||||
|
symbol = " "
|
||||||
|
|
||||||
[character]
|
[character]
|
||||||
success_symbol = "[➤](green)"
|
success_symbol = "[➤](green)"
|
||||||
error_symbol = "[➤](red)"
|
error_symbol = "[➤](red)"
|
||||||
|
|||||||
1
.zshrc
1
.zshrc
@@ -84,6 +84,7 @@ zinit light zsh-users/zsh-history-substring-search
|
|||||||
[[ -n ${key[Up]} ]] && bindkey ${key[Up]} history-substring-search-up
|
[[ -n ${key[Up]} ]] && bindkey ${key[Up]} history-substring-search-up
|
||||||
[[ -n ${key[Down]} ]] && bindkey ${key[Down]} history-substring-search-down
|
[[ -n ${key[Down]} ]] && bindkey ${key[Down]} history-substring-search-down
|
||||||
|
|
||||||
|
ZLE_RPROMPT_INDENT=0
|
||||||
# starship prompt
|
# starship prompt
|
||||||
export STARSHIP_CONFIG=~/.starship.toml
|
export STARSHIP_CONFIG=~/.starship.toml
|
||||||
zinit ice as"command" from"gh-r" \
|
zinit ice as"command" from"gh-r" \
|
||||||
|
|||||||
Reference in New Issue
Block a user