style.fish: canonicalize workspace root

Use a canonicalized absolute path for the workspace root to make errors
containing paths easier to read.

Closes #12359
This commit is contained in:
Daniel Rainer
2026-01-19 18:59:12 +01:00
committed by Johannes Altmanninger
parent 8bf416cd64
commit 07394a1621

View File

@@ -24,7 +24,7 @@ if set -l -q _flag_all
end
end
set -l workspace_root (status dirname)/..
set -l workspace_root (realpath (status dirname)/..)
if test $all = yes
if not set -l -q _flag_force; and not set -l -q _flag_check