|
|
|
@ -44,7 +44,7 @@ if [ -z "$(set -o | \grep '^vi.*on')" ]; then
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# CTRL-R - Paste the selected command from history into the command line
|
|
|
|
|
bind '"\C-r": " \C-e\C-u$(HISTTIMEFORMAT= history | fzf +s --tac +m -n2..,.. --toggle-sort=ctrl-r | sed \"s/ *[0-9]* *//\")\e\C-e\er"'
|
|
|
|
|
bind '"\C-r": " \C-e\C-u$(HISTTIMEFORMAT= history | fzf +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r | sed \"s/ *[0-9]* *//\")\e\C-e\er"'
|
|
|
|
|
|
|
|
|
|
# ALT-C - cd into the selected directory
|
|
|
|
|
bind '"\ec": " \C-e\C-u$(__fcd)\e\C-e\er\C-m"'
|
|
|
|
@ -62,7 +62,7 @@ else
|
|
|
|
|
bind -m vi-command '"\C-t": "i\C-t"'
|
|
|
|
|
|
|
|
|
|
# CTRL-R - Paste the selected command from history into the command line
|
|
|
|
|
bind '"\C-r": "\eddi$(HISTTIMEFORMAT= history | fzf +s --tac +m -n2..,.. | sed \"s/ *[0-9]* *//\")\C-x\C-e\e$a\C-x\C-r"'
|
|
|
|
|
bind '"\C-r": "\eddi$(HISTTIMEFORMAT= history | fzf +s --tac +m -n2..,.. --tiebreak=index --toggle-sort=ctrl-r | sed \"s/ *[0-9]* *//\")\C-x\C-e\e$a\C-x\C-r"'
|
|
|
|
|
bind -m vi-command '"\C-r": "i\C-r"'
|
|
|
|
|
|
|
|
|
|
# ALT-C - cd into the selected directory
|
|
|
|
|