mirror of
https://github.com/Llewellynvdm/zoxide.git
synced 2024-11-22 12:55:13 +00:00
fix: fish pwd usage (#92)
This commit is contained in:
parent
f43827a2e9
commit
f6522d1cf8
@ -69,14 +69,14 @@ end
|
||||
|
||||
const HOOK_PROMPT: &str = r#"
|
||||
function _zoxide_hook --on-event fish_prompt
|
||||
zoxide add $(pwd -L)
|
||||
zoxide add (pwd -L)
|
||||
end
|
||||
"#;
|
||||
|
||||
const fn hook_pwd() -> Result<Cow<'static, str>> {
|
||||
const HOOK_PWD: &str = r#"
|
||||
function _zoxide_hook --on-variable PWD
|
||||
zoxide add "$(pwd -L)"
|
||||
zoxide add (pwd -L)
|
||||
end
|
||||
"#;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user