logic was backwards

This commit is contained in:
Bryan Ramos 2024-05-14 13:56:04 -04:00
parent 3fea6a780c
commit 1fc2492018

View file

@ -28,7 +28,7 @@ remove_icon() {
}
${if gui.enable then ''
if [ -z "$DISPLAY" ]; then
if [ -n "$DISPLAY" ]; then
python_icon="\[\033[01;33m\]\[\033[00m\]"
node_icon="\[\033[01;93m\]󰌞\[\033[00m\]"
nix_icon="\[\033[01;34m\]\[\033[00m\]"
@ -65,7 +65,7 @@ check_venv() {
set_git_dir() {
${if gui.enable then ''
if [ -z "$DISPLAY" ]; then
if [ -n "$DISPLAY" ]; then
project_icon=""
else
project_icon="../"
@ -104,7 +104,7 @@ check_project() {
local git_root_dir=$(basename "$git_root")
${if gui.enable then ''
if [ -z "$DISPLAY" ]; then
if [ -n "$DISPLAY" ]; then
git_branch_PS1="\[\033[01;31m\]$git_branch 󰘬:\[\033[00m\]"
else
git_branch_PS1="\[\033[01;31m\]$git_branch ~:\[\033[00m\]"