modified icons prompt

This commit is contained in:
Bryan Ramos 2024-06-11 14:43:05 -04:00
parent 5afee9cd3a
commit 6712a071e3
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8

View file

@ -27,22 +27,23 @@ remove_icon() {
venv_icons=''${venv_icons//$icon/} venv_icons=''${venv_icons//$icon/}
} }
py="py"
js="js"
nix="nix"
${if gui.enable then '' ${if gui.enable then ''
if [ -n "$DISPLAY" ]; then if [ -n "$DISPLAY" ]; then
python_icon="\[\033[01;33m\]\[\033[00m\]" py=""
node_icon="\[\033[01;93m\]󰌞\[\033[00m\]" js="󰌞"
nix_icon="\[\033[01;34m\]\[\033[00m\]" nix=""
else
python_icon="\[\033[01;33m\]py\[\033[00m\]"
node_icon="\[\033[01;93m\]js\[\033[00m\]"
nix_icon="\[\033[01;34m\]nix\[\033[00m\]"
fi fi
'' else '' '' else ''
python_icon="\[\033[01;33m\]py\[\033[00m\]"
node_icon="\[\033[01;93m\]js\[\033[00m\]"
nix_icon="\[\033[01;34m\]nix\[\033[00m\]"
''} ''}
python_icon="\[\033[01;33m\]$py\[\033[00m\]"
node_icon="\[\033[01;93m\]$js\[\033[00m\]"
nix_icon="\[\033[01;34m\]$nix\[\033[00m\]"
check_venv() { check_venv() {
if [ -n "$IN_NIX_SHELL" ]; then if [ -n "$IN_NIX_SHELL" ]; then
add_icon "$nix_icon" add_icon "$nix_icon"