mirror of
https://github.com/ohmybash/oh-my-bash.git
synced 2024-05-11 05:55:37 +00:00
themes/absimple: Use the standard way to register PROMPT_COMMAND
This commit is contained in:
@@ -360,7 +360,7 @@ build_prompt() {
|
||||
# this doesn't work... new model: create a prompt via a PR variable and
|
||||
# use that.
|
||||
|
||||
set_bash_prompt() {
|
||||
_omb_theme_PROMPT_COMMAND() {
|
||||
local RETVAL=$?
|
||||
local PR=""
|
||||
local PRIGHT=""
|
||||
@@ -382,5 +382,4 @@ set_bash_prompt() {
|
||||
# PS1='\[$(tput sc; printf "%*s" $COLUMNS "$PRIGHT"; tput rc)\]'$PR
|
||||
PS1+=$PR
|
||||
}
|
||||
|
||||
PROMPT_COMMAND=set_bash_prompt
|
||||
_omb_util_add_prompt_command _omb_theme_PROMPT_COMMAND
|
||||
|
Reference in New Issue
Block a user