From 707d93e3ae2994920ee429efd1ec60bdccb73a94 Mon Sep 17 00:00:00 2001 From: Bryan Ramos Date: Fri, 26 Jan 2024 00:26:46 -0500 Subject: [PATCH] nit --- homeConfig/modules/bash/config/prompt.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/homeConfig/modules/bash/config/prompt.nix b/homeConfig/modules/bash/config/prompt.nix index 46bf06d..7e0ceee 100644 --- a/homeConfig/modules/bash/config/prompt.nix +++ b/homeConfig/modules/bash/config/prompt.nix @@ -7,15 +7,15 @@ check_ssh() { function check_venv() { if [ -n "$IN_NIX_SHELL" ]; then - nix_icon="\[\033[01;34m\] \[\033[00m\]" + local nix_icon="\[\033[01;34m\] \[\033[00m\]" venv_icons+="$nix_icon" if [ -n "$VIRTUAL_ENV" ]; then - python_icon="\[\033[01;33m\] \[\033[00m\]" + local python_icon="\[\033[01;33m\] \[\033[00m\]" venv_icons+="$python_icon" fi if [ -d "''${git_root}/node_modules" ]; then - node_icon="\[\033[01;93m\]󰌞 \[\033[00m\]" + local node_icon="\[\033[01;93m\]󰌞 \[\033[00m\]" venv_icons+="$node_icon" fi else @@ -49,9 +49,11 @@ function check_git() { } function set_prompt() { - local working_dir="\[\033[01;34m\]\w\[\033[00m\]" local green_arrow="\[\033[01;32m\]>> " local white_text="\[\033[00m\]" + local working_dir="\[\033[01;34m\]\w\[\033[00m\]" + + local ssh_PS1 local git_root local venv_icons local git_branch_PS1