commit - 77140e0ce3e4d2c1c047437f92585e1e64cf873a
commit + 01f9f1c26b38a86babcb0f618b6f952a2e688088
blob - 5d5b9f91bd2988d3fbd7172cc70e76c240cda87b
blob + 0dd7446ddc0943ff9e69e6d591cd570c49188619
--- .config/ksh/kshrc
+++ .config/ksh/kshrc
esac
}
-function history2 {
- eval fzf --tac --no-sort -e < "$HISTFILE"
-}
-
-function history {
+function history_search {
RES=$(fzf --tac --no-sort -e < "$HISTFILE")
- # If no selection is made, exit the function gracefully
test -n "$RES" || return 0
- # Execute the selected command
+ print -rs -- "$RES"
eval "$RES"
}
-alias h='history2'
+alias h='history_search'
PS1='$(home_pwd) $(git_branch); '