fix: fish pwd usage (#92)
This commit is contained in:
parent
f43827a2e9
commit
f6522d1cf8
|
@ -69,14 +69,14 @@ end
|
||||||
|
|
||||||
const HOOK_PROMPT: &str = r#"
|
const HOOK_PROMPT: &str = r#"
|
||||||
function _zoxide_hook --on-event fish_prompt
|
function _zoxide_hook --on-event fish_prompt
|
||||||
zoxide add $(pwd -L)
|
zoxide add (pwd -L)
|
||||||
end
|
end
|
||||||
"#;
|
"#;
|
||||||
|
|
||||||
const fn hook_pwd() -> Result<Cow<'static, str>> {
|
const fn hook_pwd() -> Result<Cow<'static, str>> {
|
||||||
const HOOK_PWD: &str = r#"
|
const HOOK_PWD: &str = r#"
|
||||||
function _zoxide_hook --on-variable PWD
|
function _zoxide_hook --on-variable PWD
|
||||||
zoxide add "$(pwd -L)"
|
zoxide add (pwd -L)
|
||||||
end
|
end
|
||||||
"#;
|
"#;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue