mirror of
https://github.com/junegunn/fzf.git
synced 2026-04-14 19:59:44 +08:00
[bash] Persist history deletion when histappend is on
Fix #4764 Patch suggested by @bitraid.
This commit is contained in:
@@ -84,6 +84,10 @@ __fzf_history_delete() {
|
||||
for offset in "${offsets[@]}"; do
|
||||
builtin history -d "$offset"
|
||||
done
|
||||
|
||||
if [[ ${#offsets[@]} -gt 0 ]] && shopt -q histappend; then
|
||||
builtin history -w
|
||||
fi
|
||||
}
|
||||
|
||||
if command -v perl > /dev/null; then
|
||||
|
||||
Reference in New Issue
Block a user