Moved arrow-keys-search-history from lib to available plugins
parent
5a7476a774
commit
61e52883f7
|
|
@ -15,11 +15,6 @@ export HISTSIZE=5000
|
||||||
|
|
||||||
export AUTOFEATURE=true autotest
|
export AUTOFEATURE=true autotest
|
||||||
|
|
||||||
# enter a few characters and press UpArrow/DownArrow
|
|
||||||
# to search backwards/forwards through the history
|
|
||||||
bind '"[A":history-search-backward'
|
|
||||||
bind '"[B":history-search-forward'
|
|
||||||
|
|
||||||
function rh {
|
function rh {
|
||||||
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
|
history | awk '{a[$2]++}END{for(i in a){print a[i] " " i}}' | sort -rn | head
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,4 @@
|
||||||
|
# enter a few characters and press UpArrow/DownArrow
|
||||||
|
# to search backwards/forwards through the history
|
||||||
|
bind '"[A":history-search-backward'
|
||||||
|
bind '"[B":history-search-forward'
|
||||||
Loading…
Reference in New Issue