added hostname to prompt
This commit is contained in:
parent
13eb300e23
commit
619faa4cf7
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Xcursor.theme: whiteglass
|
Xcursor.theme: Adwaita
|
||||||
|
|
||||||
*.foreground: #dedacf
|
*.foreground: #dedacf
|
||||||
*.background: #080808
|
*.background: #080808
|
||||||
|
|
Loading…
Reference in New Issue