added hostname to prompt

This commit is contained in:
Rudis Muiznieks 2022-04-22 14:15:14 -05:00
parent 13eb300e23
commit 619faa4cf7
Signed by: rudism
GPG Key ID: CABF2F86EF7884F9
3 changed files with 4 additions and 3 deletions

View File

@ -3,6 +3,7 @@ GREEN=$(tput setaf 2)
YELLOW=$(tput setaf 3) YELLOW=$(tput setaf 3)
BLUE=$(tput setaf 4) BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5) MAGENTA=$(tput setaf 5)
GRAY=$(tput setaf 8)
ITALIC=$(tput sitm) ITALIC=$(tput sitm)
RESET=$(tput sgr0) RESET=$(tput sgr0)
@ -62,7 +63,7 @@ set_prompt() {
else else
git_symbol= git_symbol=
fi fi
PS1="\n$last_command_stats\[$BLUE\]\w\[$RESET\]$git_symbol\[$YELLOW\]$git_branch\[$RESET\]\n\[$prompt_color\]\[$RESET\] " PS1="\n$last_command_stats\[$GRAY\]$(whoami)@$(hostname)\[$RESET\] \[$BLUE\]\w\[$RESET\]$git_symbol\[$YELLOW\]$git_branch\[$RESET\]\n\[$prompt_color\]\[$RESET\] "
} }
trap 'last_command_timer' DEBUG trap 'last_command_timer' DEBUG

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
if [ -z "$DISPLAY" ] && [ -x "$(command -v startx)" ]; then if [ -z "$DISPLAY" ] && [ -x "$(command -v startx)" ] && ! pgrep herbstluftwm >/dev/null; then
# start x if it's available and we're not already in it # start x if it's available and we're not already in it
startx startx
else else

View File

@ -1,4 +1,4 @@
Xcursor.theme: whiteglass Xcursor.theme: Adwaita
*.foreground: #dedacf *.foreground: #dedacf
*.background: #080808 *.background: #080808