From 2a16b5719644ec78b3d22c6ef3d855119ae00a8a Mon Sep 17 00:00:00 2001 From: TheK4n Date: Mon, 18 Oct 2021 16:00:56 +0300 Subject: [PATCH] fix: terminal name --- .subbash/prompt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.subbash/prompt b/.subbash/prompt index 02159ac..128d148 100644 --- a/.subbash/prompt +++ b/.subbash/prompt @@ -81,7 +81,7 @@ __prompt_command() { VENV_="\$(virtualenv_info)" BRANCH_="\$(parse_git_branch)" - TERMINAL_NAME="$(basename "$0")" + TERMINAL_NAME=${0%%/*} TERMINAL_NAME="\[\e]2;${TERMINAL_NAME^^}\a\]" if [ $EXIT != 0 ]; then