From 262463b5f4d2f81233450530f0f9dd497abadff3 Mon Sep 17 00:00:00 2001 From: XWasHere Date: Mon, 30 Oct 2023 19:54:32 -0400 Subject: [PATCH] use readlink instead of other thing --- zsh/prompt_miniline_setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zsh/prompt_miniline_setup b/zsh/prompt_miniline_setup index d085a94..4e9a843 100644 --- a/zsh/prompt_miniline_setup +++ b/zsh/prompt_miniline_setup @@ -26,14 +26,14 @@ function () { # search for git dir local found=false; - local dir="$(realpath "$(pwd)")"; + local dir="$(readlink -f "$(pwd)")"; while [[ "$dir" != "/" ]]; do if [[ -d "$dir/.git" ]]; then found=true; break; fi; - dir="$(realpath "$dir/..")"; + dir="$(readlink -f "$dir/..")"; done; # handle git repo