diff --git a/playbooks/roles/shell/tasks/zsh.yml b/playbooks/roles/shell/tasks/zsh.yml index a37b47d..75974cb 100644 --- a/playbooks/roles/shell/tasks/zsh.yml +++ b/playbooks/roles/shell/tasks/zsh.yml @@ -19,7 +19,7 @@ dest: ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting - 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 template: diff --git a/playbooks/roles/shell/templates/starship.toml.j2 b/playbooks/roles/shell/templates/starship.toml.j2 index 0a7b939..22c6cda 100644 --- a/playbooks/roles/shell/templates/starship.toml.j2 +++ b/playbooks/roles/shell/templates/starship.toml.j2 @@ -1,5 +1,6 @@ add_newline = false -format = """$username\ +format = """${custom.toolbox}\ +$username\ $hostname\ $git_branch\ $git_commit\ @@ -33,3 +34,8 @@ format = "[$path]($style)[$read_only]($read_only_style) " [character] success_symbol = "[%%](bold green)" error_symbol = "[%%](bold red)" + +[custom.toolbox] +when = "ls /run/.containerenv" +command = "echo ⬢" +style = "bold purple"