fix: fish pwd usage

feat: add explicit -L prompt
This commit is contained in:
passchaos 2020-07-04 15:24:39 +08:00
parent f43827a2e9
commit 60412b00ce
1 changed files with 2 additions and 2 deletions

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