fix: fish pwd usage (#92)

This commit is contained in:
Greedwolf DSS 2020-07-04 15:58:42 +08:00 committed by GitHub
parent f43827a2e9
commit f6522d1cf8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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
"#;