This commit is contained in:
riChar 2025-07-05 18:02:16 -07:00 committed by GitHub
commit 2e97bb0ed4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -353,7 +353,7 @@ pub(crate) fn create(
} }
(true, "activate.bat") => r"%~dp0..".to_string(), (true, "activate.bat") => r"%~dp0..".to_string(),
(true, "activate.fish") => { (true, "activate.fish") => {
r#"'"$(dirname -- "$(cd "$(dirname -- "$(status -f)")"; and pwd)")"'"#.to_string() r#""$(dirname -- "$(dirname -- "$(realpath -- "$(status filename)")")")""#.to_string()
} }
// Note: // Note:
// * relocatable activate scripts appear not to be possible in csh and nu shell // * relocatable activate scripts appear not to be possible in csh and nu shell