mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 21:35:00 +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.fish") => {
|
||||
r#"'"$(dirname -- "$(cd "$(dirname -- "$(status -f)")"; and pwd)")"'"#.to_string()
|
||||
r#""$(dirname -- "$(dirname -- "$(realpath -- "$(status filename)")")")""#.to_string()
|
||||
}
|
||||
// Note:
|
||||
// * relocatable activate scripts appear not to be possible in csh and nu shell
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue