added hostname to prompt
This commit is contained in:
parent
13eb300e23
commit
619faa4cf7
3 changed files with 4 additions and 3 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
Xcursor.theme: whiteglass
|
||||
Xcursor.theme: Adwaita
|
||||
|
||||
*.foreground: #dedacf
|
||||
*.background: #080808
|
||||
|
|
Loading…
Reference in a new issue