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)
BLUE=$(tput setaf 4)
MAGENTA=$(tput setaf 5)
GRAY=$(tput setaf 8)
ITALIC=$(tput sitm)
RESET=$(tput sgr0)
@ -62,7 +63,7 @@ set_prompt() {
else
git_symbol=
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

View file

@ -1,6 +1,6 @@
#!/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
startx
else

View file

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