mirror of
https://github.com/junegunn/fzf.git
synced 2025-11-18 08:13:40 -05:00
CTRL-R for bash: Unset $HISTTIMEFORMAT
This commit is contained in:
2
install
2
install
@@ -111,7 +111,7 @@ __fsel() {
|
|||||||
bind '"\C-t": " \C-u \C-a\C-k$(__fsel)\e\C-e\C-y\C-a\C-y\ey\C-h\C-e\er"'
|
bind '"\C-t": " \C-u \C-a\C-k$(__fsel)\e\C-e\C-y\C-a\C-y\ey\C-h\C-e\er"'
|
||||||
|
|
||||||
# CTRL-R - Paste the selected command from history into the command line
|
# CTRL-R - Paste the selected command from history into the command line
|
||||||
bind '"\C-r": " \C-e\C-u$(history | fzf +s | sed \"s/ *[0-9]* *//\")\e\C-e\er"'
|
bind '"\C-r": " \C-e\C-u$(HISTTIMEFORMAT= history | fzf +s | sed \"s/ *[0-9]* *//\")\e\C-e\er"'
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user