commit b2c4b43eaaedefd4a2514534431f8be8b1133f42
parent 5981458a7099c4c8853a89eafc2d29c56092e246
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 2 Oct 2019 07:20:31 +0200
Add history binding
Diffstat:
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/.config/sh/commands b/.config/sh/commands
@@ -28,6 +28,10 @@ alias lo='l -alo'
alias r='fc -s'
+h() {
+ eval $(cat "$HISTFILE" | fzf)
+}
+
o() {
[ "$(uname)" = 'Darwin' ] && open="open" || open="xdg-open"
if [ "$#" -gt 0 ] && [ -f "$1" ]; then