diff --git a/.chezmoiignore b/.chezmoiignore index de963c3..ba132c8 100644 --- a/.chezmoiignore +++ b/.chezmoiignore @@ -4,6 +4,6 @@ vim-lightline.tar.gz {{- if eq .chezmoi.hostname "docker-ce-ubuntu-2gb-nbg1-1" }} .bashrc.d/11.motd {{- end }} -{{- if ne .chezmoi.hostname "docker-ce-ubuntu-2gb-nbg1-1" }} +{{- if (and (ne .chezmoi.hostname "docker-ce-ubuntu-2gb-nbg1-1") (ne .chezmoi.hostname "nb4113"))}} .local/share/bash-completion/completions/rustup {{- end }} diff --git a/dot_bashrc.d/executable_10.prompt.tmpl b/dot_bashrc.d/executable_10.prompt.tmpl index d014a3f..a55259b 100644 --- a/dot_bashrc.d/executable_10.prompt.tmpl +++ b/dot_bashrc.d/executable_10.prompt.tmpl @@ -35,12 +35,18 @@ function lastExitCode { if [ $exit != 0 ];then # printf '\e[38;5;160m%-5s' "✕ ❗ ($exit)" - echo "$(colf 1)❗($exit)" + echo "$(colf 1)(⚡$exit)" else - echo '✔' + echo '✓' fi } +# TODO: switch to use themes +# So far the colors used: +# - green (2) for directory +# - blue (4) for git prompt +# - red (1) for 'star' + # Color sequences must be escaped with '\[ ... \] # See https://unix.stackexchange.com/questions/105958/terminal-prompt-not-wrapping-correctly function hostPrompt() {