From cb4104318d5a164eb6980fdb7d1dfb3c9435e949 Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Mon, 30 Oct 2023 10:15:34 -0400 Subject: [PATCH] improve ctx --- configs/shells/bash/.bashrc | 2 +- configs/shells/bash/macros.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configs/shells/bash/.bashrc b/configs/shells/bash/.bashrc index 5038e0b..1e99044 100644 --- a/configs/shells/bash/.bashrc +++ b/configs/shells/bash/.bashrc @@ -13,7 +13,7 @@ export PATH="$EWCONFIG_ROOT/configs/scripts:$PATH" export PATH="$HOME/.local/bin:$PATH" # A basic prompt to display user@host dir sign -export PS1="$PS1_CTX(bash) \[\e[0;32m\]\u@\h \[\e[0;36m\]\w \[\e[0;36m\]\$ \[\e[0m\]" +export PS1="(${PS1_CTX:-bash}) \[\e[0;32m\]\u@\h \[\e[0;36m\]\w \[\e[0;36m\]\$ \[\e[0m\]" # If found, load studio python if [ -d "/c/Programs/software/win/core/python/python_3.7.7" ]; then export PATH="/c/Programs/software/win/core/python/python_3.7.7:$PATH"; fi diff --git a/configs/shells/bash/macros.sh b/configs/shells/bash/macros.sh index b1f7604..651e072 100644 --- a/configs/shells/bash/macros.sh +++ b/configs/shells/bash/macros.sh @@ -196,6 +196,6 @@ ewconfig-pull-zip(){ # Pop a shell inside Guru env guru-shell() { PYTHONPATH="//qs//resources/studio/studio2023/env:$PYTHONPATH" \ - PS1_CTX="(guru) " \ + PS1_CTX="guru bash" \ bash } \ No newline at end of file