Skip to content

Commit

Permalink
change to normal bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Barnabe committed Nov 28, 2024
1 parent c84de64 commit f4f8bc6
Showing 1 changed file with 3 additions and 20 deletions.
23 changes: 3 additions & 20 deletions usr/share/biglinux/bash-config/bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -184,27 +184,10 @@ if [[ ${BLE_VERSION-} ]]; then
_ble_contrib_fzf_base=/usr/share/fzf/
fi
else
# tty
if [[ $TERM = linux ]]; then
if [ "$color_prompt" = yes ]; then
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
else
# bash-normal
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 "
PS1='${debian_chroot:+($debian_chroot)}\u@\h:\w\$ '
fi
unset color_prompt force_color_prompt
fi

0 comments on commit f4f8bc6

Please sign in to comment.