I dont know why these changes were showing up. but I reverted them

This commit is contained in:
Jacob Olson 2024-03-06 14:05:02 -07:00
parent 594ad21b32
commit 7e9fa1a5f8
2 changed files with 3 additions and 2 deletions

View File

@ -19,6 +19,7 @@ function git_prompt_info() {
local ref
ref=$(__git_prompt_git symbolic-ref --short HEAD 2> /dev/null) \
|| ref=$(__git_prompt_git describe --tags --exact-match HEAD 2> /dev/null) \
|| ref=$(__git_prompt_git rev-parse --short HEAD 2> /dev/null) \
|| return 0

View File

@ -6,8 +6,8 @@
# dashed separator size
function afmagic_dashes {
# check either virtualenv or condaenv variables
local python_env="${VIRTUAL_ENV:-$CONDA_DEFAULT_ENV}"
local python_env_dir="${VIRTUAL_ENV:-$CONDA_DEFAULT_ENV}"
local python_env="${python_env_dir##*/}"
# if there is a python virtual environment and it is displayed in
# the prompt, account for it when returning the number of dashes
if [[ -n "$python_env" && "$PS1" = \(* ]]; then