From 65d0032b8ed3f48a5a447359ccab75d10e0aec2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Gon=C3=A7alves?= Date: Sun, 22 Oct 2023 16:54:01 -0300 Subject: [PATCH] Fix to vscode --- usr/share/biglinux/bash-config/bashrc | 18 ------------------ usr/share/biglinux/bash-config/blerc | 7 ++++++- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/usr/share/biglinux/bash-config/bashrc b/usr/share/biglinux/bash-config/bashrc index c43249a..8d58f54 100644 --- a/usr/share/biglinux/bash-config/bashrc +++ b/usr/share/biglinux/bash-config/bashrc @@ -145,23 +145,5 @@ else if [[ $TERM = linux ]]; then PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' - else - greenBg="\[\e[48;5;115m\]" - greenFg="\[\e[38;5;115m\]" - - blackFg="\[\e[30m\]" - whiteFg="\[\e[37m\]" - - # Reset - fmtReset="\[\e[0m\]" - - systemBg="\[\e[48;5;237m\]" - systemFg="\[\e[38;5;237m\]" - - nameBg="\[\e[48;5;248m\]" - nameFg="\[\e[38;5;248m\]" - - # one line PS1 - PS1="$systemBg$greenFg  $systemFg$greenBg $blackFg$greenBg\w $fmtReset$greenFg$fmtReset " fi fi diff --git a/usr/share/biglinux/bash-config/blerc b/usr/share/biglinux/bash-config/blerc index 3ff5a25..30ce109 100644 --- a/usr/share/biglinux/bash-config/blerc +++ b/usr/share/biglinux/bash-config/blerc @@ -163,7 +163,12 @@ nameBg="\[\e[48;5;248m\]" nameFg="\[\e[38;5;248m\]" # one line PS1 -PS1="$systemBg$blueFg  $systemFg$blueBg $blackFg$blueBg\w $fmtReset$blueFg$fmtReset " +if [[ -n $CHROME_DESKTOP ]]; then + PS1="$systemBg$blueFg \u@\h $systemFg$blueBg $blackFg$blueBg\w $fmtReset$blueFg$fmtReset " +else + PS1="$systemBg$blueFg  $systemFg$blueBg $blackFg$blueBg\w $fmtReset$blueFg$fmtReset " +fi + # two lines PS1 # PS1="\n$systemBg$blueFg  \u $systemFg$blueBg $blackFg$blueBg\w $fmtReset$blueFg$fmtReset\n$systemBg$whiteFg $systemFg$fmtReset$systemFg "