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:
Matej Focko 2021-01-25 19:27:01 +01:00
parent b61a8814d7
commit d2a345cc0e
No known key found for this signature in database
GPG key ID: 332171FADF1DB90B
2 changed files with 8 additions and 2 deletions

View file

@ -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:

View file

@ -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"