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:
parent
e2b82b56f9
commit
ebdfb17bb1
2 changed files with 38 additions and 38 deletions
|
|
@ -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 '()')"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue