more changes

This commit is contained in:
Bryan Ramos 2024-01-26 00:07:11 -05:00
parent 3bb1fc16de
commit 9c2fca4e5e
Signed by: bryan
GPG key ID: 6ABDCD144D6643C8

View file

@ -11,7 +11,7 @@ function check_venv() {
venv_icons+="$nix_icon" venv_icons+="$nix_icon"
if [ -n "$VIRTUAL_ENV" ]; then if [ -n "$VIRTUAL_ENV" ]; then
python_icon="\[\033[01;96m\] \[\033[00m\]" 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
@ -25,6 +25,8 @@ function check_venv() {
function set_git_dir() { function set_git_dir() {
local git_curr_dir=$(realpath --relative-to="$git_root" .) local git_curr_dir=$(realpath --relative-to="$git_root" .)
local git_root_dir=$(basename "$git_root")
if [ "$git_curr_dir" == "." ]; then if [ "$git_curr_dir" == "." ]; then
working_dir="\[\033[01;34m\] $git_root_dir\[\033[00m\]" working_dir="\[\033[01;34m\] $git_root_dir\[\033[00m\]"
else else
@ -40,7 +42,6 @@ function check_git() {
fi fi
git_root=$(git rev-parse --show-toplevel) git_root=$(git rev-parse --show-toplevel)
local git_root_dir=$(basename "$git_root")
git_branch_PS1="\[\033[01;31m\]$git_branch 󰘬:\[\033[00m\]" git_branch_PS1="\[\033[01;31m\]$git_branch 󰘬:\[\033[00m\]"
set_git_dir set_git_dir