diff options
| author | Emilio Vesprini <82109173+emivespa@users.noreply.github.com> | 2024-03-30 13:13:15 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-31 01:13:15 +0900 |
| commit | 7de87a9b2c643ab6a1329666b283cab4ba9cb08e (patch) | |
| tree | 5fb5b4602482fb600b32428f9abe0c7ee13fcfae /shell/key-bindings.zsh | |
| parent | dff865239a0cdc79f33e97ec900b2bc8dd6517d2 (diff) | |
| download | fzf-7de87a9b2c643ab6a1329666b283cab4ba9cb08e.tar.gz | |
[shell] Make ALT-C use the absolute path to the selected directory (#3688)
Rationale: this way the resulting cd command that ends up in the shell
history can be reused to get to the same location regardless of
the current working directory.
Co-authored-by: LangLangBart <92653266+LangLangBart@users.noreply.github.com>
Diffstat (limited to 'shell/key-bindings.zsh')
| -rw-r--r-- | shell/key-bindings.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index 51aa6ea0..3614dd43 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -78,7 +78,7 @@ fzf-cd-widget() { return 0 fi zle push-line # Clear buffer. Auto-restored on next prompt. - BUFFER="builtin cd -- ${(q)dir}" + BUFFER="builtin cd -- ${(q)dir:a}" zle accept-line local ret=$? unset dir # ensure this doesn't end up appearing in prompt expansion |
