bugfix: make fish 3.3. compatible

This commit is contained in:
2022-02-17 10:07:30 +01:00
parent cff3e24b92
commit e4939853d6
5 changed files with 123 additions and 114 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 ^/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