Skip to content

Commit

Permalink
Replace the home directory with ~ in the printed loaded envs
Browse files Browse the repository at this point in the history
  • Loading branch information
sherpalabsio committed Jan 12, 2025
1 parent 552c4a7 commit 4f8f875
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/status.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ print_loaded_envs() {
fi

for ((i = last_index; i >= first_index; i--)); do
echo "- ${SHERPA_LOADED_ENV_DIRS[i]}"
local dir=${SHERPA_LOADED_ENV_DIRS[i]/$HOME/\~} # Replace /Users/peter with ~
echo "- $dir"
done
fi
}
Expand Down

0 comments on commit 4f8f875

Please sign in to comment.