Minor changes.
This commit is contained in:
parent
b7a65468e4
commit
802ea305cc
@ -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 }}
|
||||
|
||||
@ -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() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user