This commit is contained in:
Bryan Ramos 2024-01-26 00:26:46 -05:00
parent 9c2fca4e5e
commit 707d93e3ae
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8

View file

@ -7,15 +7,15 @@ check_ssh() {
function check_venv() { function check_venv() {
if [ -n "$IN_NIX_SHELL" ]; then 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" venv_icons+="$nix_icon"
if [ -n "$VIRTUAL_ENV" ]; then if [ -n "$VIRTUAL_ENV" ]; then
python_icon="\[\033[01;33m\] \[\033[00m\]" local python_icon="\[\033[01;33m\] \[\033[00m\]"
venv_icons+="$python_icon" venv_icons+="$python_icon"
fi fi
if [ -d "''${git_root}/node_modules" ]; then 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" venv_icons+="$node_icon"
fi fi
else else
@ -49,9 +49,11 @@ function check_git() {
} }
function set_prompt() { function set_prompt() {
local working_dir="\[\033[01;34m\]\w\[\033[00m\]"
local green_arrow="\[\033[01;32m\]>> " local green_arrow="\[\033[01;32m\]>> "
local white_text="\[\033[00m\]" local white_text="\[\033[00m\]"
local working_dir="\[\033[01;34m\]\w\[\033[00m\]"
local ssh_PS1
local git_root local git_root
local venv_icons local venv_icons
local git_branch_PS1 local git_branch_PS1