Add THEME_PROMPT_HOST for use in prompts
This switches the doubletime theme over to using a variable for determining what to display in the prompt. The original version's use of a hard-coded `@local` means you would have that suffix displayed even on remote machines.pull/38/head
parent
8ac6e4414e
commit
0c2f3093a0
|
|
@ -1,5 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
THEME_PROMPT_HOST='\H'
|
||||||
SCM_THEME_PROMPT_DIRTY=' ✗'
|
SCM_THEME_PROMPT_DIRTY=' ✗'
|
||||||
SCM_THEME_PROMPT_CLEAN=' ✓'
|
SCM_THEME_PROMPT_CLEAN=' ✓'
|
||||||
SCM_THEME_PROMPT_PREFIX=' |'
|
SCM_THEME_PROMPT_PREFIX=' |'
|
||||||
|
|
|
||||||
|
|
@ -25,7 +25,7 @@ prompt_setter() {
|
||||||
history -c
|
history -c
|
||||||
history -r
|
history -r
|
||||||
PS1="
|
PS1="
|
||||||
\t $(scm_char) [\[$blue\]\u@local\[$reset_color\]] \w
|
\t $(scm_char) [\[$blue\]\u@${THEME_PROMPT_HOST}\[$reset_color\]] \w
|
||||||
$(doubletime_scm_prompt)\[$reset_color\] $ "
|
$(doubletime_scm_prompt)\[$reset_color\] $ "
|
||||||
PS2='> '
|
PS2='> '
|
||||||
PS4='+ '
|
PS4='+ '
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue