Moved arrow-keys-search-history from lib to available plugins
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
4
plugins/available/history.plugin.bash
Normal file
4
plugins/available/history.plugin.bash
Normal file
@@ -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'
|
||||||
Reference in New Issue
Block a user