From 15051daa7a5481a21e4b258e99132a889dec5083 Mon Sep 17 00:00:00 2001 From: zoomiti Date: Sun, 18 Sep 2022 18:47:39 -0400 Subject: [PATCH] Fixes Bash prompt not updating rpg --- .bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.bashrc b/.bashrc index 834e1d7..c108ea3 100644 --- a/.bashrc +++ b/.bashrc @@ -43,7 +43,7 @@ vicd () { if command -v rpg-cli &> /dev/null then - PS1="[\u@\h ](\W)\n$(CLICOLOR_FORCE=1 rpg-cli stat -q | sed 's/@.*//' | sed 's/\(\x1B[@A-Z\\\]^_]\|\x1B\[[0-9:;<=>?]*[-!"#$%&'"'"'()*+,.\/]*[][\\@A-Z^_`a-z{|}~]\)/\\[\1\\]/g')\$ " + PS1='[\u@\h ](\W)\n$(CLICOLOR_FORCE=1 rpg-cli stat -q | sed "s/@.*//" | sed -r "s/(\\x1B\\[([0-9]{1,3}(;[0-9]{1,2})?)?[mGK])/\[\1\]/g" )\$ ' alias rpg-battle="rpg-cli cd -f . && rpg-cli battle" alias rm="rpg-battle && rm"