sh: Added date stamps to history command

Prepending history with datestamps (which are already correctly saved in
my shell history), so I know WHEN I last run a command (roughly) and can
also search for the dates using `fzfhistory`.
This commit is contained in:
Marty Oehme 2021-03-27 22:19:43 +01:00
parent e2b82b56f9
commit ebdfb17bb1
Signed by: Marty
GPG key ID: B7538B8F50A1C800
2 changed files with 38 additions and 38 deletions

View file

@ -49,7 +49,7 @@ alias myip="curl -s icanhazip.com"
# fzf
if exist fzf; then
# Display fuzzy-searchable history
alias fzfhistory="history 0 | fzf --tac --height 20"
alias fzfhistory="history -l -E -D 0 | fzf --tac --height 20"
fzfman() {
man "$(apropos --long "$1" | fzf | awk '{print $2, $1}' | tr -d '()')"
}