Store timestamps in command history

This commit is contained in:
ItsDrike 2022-08-23 10:53:33 +02:00
parent f4d3da10ee
commit fcdd9df1a6
No known key found for this signature in database
GPG key ID: B014E761034AF742
3 changed files with 3 additions and 0 deletions

View file

@ -230,6 +230,7 @@ alias vimwiki='vim -c VimwikiIndex' # Open vimwiki index
alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
alias tty-clock='tty-clock -Ssc' # Terminal clock screensaver
alias rick='curl -s -L https://raw.githubusercontent.com/ItsDrike/rickrollrc/master/roll.sh| bash' # Terminal rickroll
alias hist='fc -lt "$HISTTIMEFORMAT" 1'
# If user is not root, pass all commands via sudo/doas
if [ "$(id -u)" -ne 0 ]; then