chore: fix nested git repos

This commit is contained in:
2022-02-18 14:12:52 +01:00
parent e4939853d6
commit 8720d0e19b
2 changed files with 12 additions and 14 deletions

View File

@ -7,7 +7,7 @@ function t31m_prompt_right
set cwd (basename (prompt_pwd))
if git::is_repo
set root_folder (command git rev-parse --show-toplevel 2>/dev/null)
set root_folder (command git rev-parse --show-toplevel 2> /dev/null)
set parent_root_folder (dirname $root_folder)
set cwd (echo $PWD | sed -e "s|$parent_root_folder/||")
end