mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 10:58:28 +00:00
Fix the current directory change issue upon activation of a relocatable venv within fish
This commit is contained in:
parent
4d9c9a1e76
commit
b3ab77de27
1 changed files with 1 additions and 1 deletions
|
@ -300,7 +300,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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue