diff options
author | Martin Polden <mpolden@mpolden.no> | 2023-03-23 22:46:03 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2023-03-23 22:46:03 +0100 |
commit | c4274fe9dd593a937f011015e53bcdb818d6b208 (patch) | |
tree | e1eddc4d2d23b34707ee4b7cfeb69834de3badac | |
parent | a7a9e669a435d8bb5715f4b1f7aea5cd2a7aa414 (diff) |
zsh: remove history reload wrapper
Not that useful. Just pressing enter will update history from other shells.
-rw-r--r-- | zshrc | 14 |
1 files changed, 0 insertions, 14 deletions
@@ -408,20 +408,6 @@ load-extension fzf-completion "$HOMEBREW_PREFIX/opt/fzf/shell/completion.zsh" # load-extension fzf-completion "/usr/share/doc/fzf/examples/completion.zsh" # dpkg on Debian load-extension fzf-completion "/usr/share/zsh/site-functions/fzf" # rpm on Fedora -# Re-read history before invoking history widget. -# Inspired by https://superuser.com/questions/843138/how-can-i-get-zsh-shared-history-to-work -_history_widget="${$(bindkey '^R')[(ws: :)2]}" - -function history-widget-with-reload { - [[ -o sharehistory ]] && fc -RI - zle "$_history_widget" -} - -if zle -l "$_history_widget"; then - zle -N history-widget-with-reload - bindkey '^R' history-widget-with-reload -fi - # Load vterm support if [[ "$INSIDE_EMACS" == "vterm" ]]; then load-extension vterm $(print "${HOME}/.emacs.d/elpa/"vterm-*"/etc/emacs-vterm-zsh.sh"(N)) |