Skip to content

Commit fd28b68

Browse files
committed
Fix Control-R
Before, we updated thoughtbot's `laptop` script to install `fzf`. We had installed the binary when we included the `fzf` Vim plugin. By installing the executable as part of `laptop`, we broke Control-R. We fixed Control-R by sourcing the configuration files when we start zsh. [GitHub](#764)
1 parent d8defee commit fd28b68

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

zsh/configs/fzf.zsh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/usr/bin/env zsh
2+
3+
source <(/opt/homebrew/bin/fzf --zsh)

zsh/configs/keybindings.zsh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ bindkey "^F" vi-cmd-mode
99
bindkey "^A" beginning-of-line
1010
bindkey "^E" end-of-line
1111
bindkey "^K" kill-line
12-
bindkey "^R" history-incremental-search-backward
1312
bindkey "^P" history-search-backward
1413
bindkey "^Y" accept-and-hold
1514
bindkey "^N" insert-last-word

zshrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ _load_settings() {
3434
}
3535
_load_settings "$HOME/.zsh/configs"
3636

37+
eval "$(/opt/homebrew/bin/brew shellenv)"
38+
3739
# Local config
3840
[[ -f ~/.zshrc.local ]] && source ~/.zshrc.local
3941

0 commit comments

Comments
 (0)