Skip to content

Commit

Permalink
Fix theme in tty
Browse files Browse the repository at this point in the history
  • Loading branch information
bigbruno committed Oct 22, 2023
1 parent 2781f65 commit 055f97c
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions usr/share/biglinux/bash-config/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -139,21 +139,26 @@ fi
if [[ ${BLE_VERSION-} ]]; then
ble-attach
else
greenBg="\[\e[48;5;115m\]"
greenFg="\[\e[38;5;115m\]"
# Use in tty
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\]"
blackFg="\[\e[30m\]"
whiteFg="\[\e[37m\]"

# Reset
fmtReset="\[\e[0m\]"
# Reset
fmtReset="\[\e[0m\]"

systemBg="\[\e[48;5;237m\]"
systemFg="\[\e[38;5;237m\]"
systemBg="\[\e[48;5;237m\]"
systemFg="\[\e[38;5;237m\]"

nameBg="\[\e[48;5;248m\]"
nameFg="\[\e[38;5;248m\]"
nameBg="\[\e[48;5;248m\]"
nameFg="\[\e[38;5;248m\]"

# one line PS1
PS1="$systemBg$greenFg$systemFg$greenBg$blackFg$greenBg\w $fmtReset$greenFg$fmtReset "
# one line PS1
PS1="$systemBg$greenFg$systemFg$greenBg$blackFg$greenBg\w $fmtReset$greenFg$fmtReset "
fi
fi

0 comments on commit 055f97c

Please sign in to comment.