From 112736aea70a5241fcf638f4f6244cbeb2b32fdd Mon Sep 17 00:00:00 2001 From: terminaldweller Date: Thu, 4 Aug 2022 22:23:12 +0430 Subject: updates --- .bashrc | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to '.bashrc') diff --git a/.bashrc b/.bashrc index e1ca686..65c69b4 100644 --- a/.bashrc +++ b/.bashrc @@ -61,21 +61,22 @@ disk_usage=$(df | grep /dev/sdb3 | awk '{print $5}') function aa_prompt_defaults() { local colors=$(tput colors 2>/dev/null || echo -n 1) C= - if [[ $colors -ge 256 ]]; then - C="$(tput setaf 33 2>/dev/null)" - AA_P='mf=x mt=x n=0; while [[ $n < 1 ]];do read a mt a; read a mf a; (( n++ )); done/dev/null || readlink /proc/$$/fd/0 2>/dev/null)} PS1="\[\e[m\n\e[1;38m\][\$\$:\$PPID \j:\!\[\e[1;38m\]]\[\e[0;36m\] \T \d \[\e[1;34m\][${C}\u@\H\[\e[1;34m\]:\[\e[0;37m\]${SSH_TTY/\/dev\//} \[\e[0;37m\]+${SHLVL}\[\e[1;34m\]] \[\e[1;37m\]\w\[\e[0;37m\]\n\\$ " - export PS1 AA_P PROMPT_COMMAND SSH_TTY + # export PS1 AA_P PROMPT_COMMAND SSH_TTY + export PS1 PROMPT_COMMAND SSH_TTY } aa_prompt_defaults -- cgit v1.2.3