X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/balance?a=blobdiff_plain;f=dotfiles_minimal%2Fshinit;h=c80a6bcc148f375d4802382e8be61cfe1be07c78;hb=45ad72f3c2b3037e826a285aa443d421ec7f8669;hp=a5a9ee27df2fb1da5c3e0652d807d697a9106848;hpb=9ac68d1cb7fdd3ee3baa6ebdb02c35d5f83b9717;p=config diff --git a/dotfiles_minimal/shinit b/dotfiles_minimal/shinit index a5a9ee2..c80a6bc 100644 --- a/dotfiles_minimal/shinit +++ b/dotfiles_minimal/shinit @@ -16,8 +16,7 @@ fi tput_color="$(tput setaf $colornumber)$(tput bold)" tput_reset="$(tput sgr0)" # Bash confuses the line length when not told to not count escape sequences. -which_shell=`lsof -ap $$ -d txt | awk 'NR>1 {print $NF}'` -if [ "${which_shell#*'bash'}" != "$which_shell" ]; then +if [ ! "$BASH" = "" ]; then tput_color="\[$tput_color\]" tput_reset="\[$tput_reset\]" fi