Update starship.rs config
- install to local directory - add command for toolbox status Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
parent
b61a8814d7
commit
d2a345cc0e
2 changed files with 8 additions and 2 deletions
|
@ -19,7 +19,7 @@
|
||||||
dest: ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
dest: ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting
|
||||||
|
|
||||||
- name: Clone starship
|
- name: Clone starship
|
||||||
shell: sh -c "$(curl -fsSL https://starship.rs/install.sh)" "" -f
|
shell: sh -c "$(curl -fsSL https://starship.rs/install.sh)" "" -f -b $HOME/.local/bin
|
||||||
|
|
||||||
- name: Create zshrc
|
- name: Create zshrc
|
||||||
template:
|
template:
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
add_newline = false
|
add_newline = false
|
||||||
format = """$username\
|
format = """${custom.toolbox}\
|
||||||
|
$username\
|
||||||
$hostname\
|
$hostname\
|
||||||
$git_branch\
|
$git_branch\
|
||||||
$git_commit\
|
$git_commit\
|
||||||
|
@ -33,3 +34,8 @@ format = "[$path]($style)[$read_only]($read_only_style) "
|
||||||
[character]
|
[character]
|
||||||
success_symbol = "[%%](bold green)"
|
success_symbol = "[%%](bold green)"
|
||||||
error_symbol = "[%%](bold red)"
|
error_symbol = "[%%](bold red)"
|
||||||
|
|
||||||
|
[custom.toolbox]
|
||||||
|
when = "ls /run/.containerenv"
|
||||||
|
command = "echo ⬢"
|
||||||
|
style = "bold purple"
|
||||||
|
|
Loading…
Reference in a new issue