mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-06-29 04:00:42 +00:00
Store timestamps in command history
This commit is contained in:
parent
f4d3da10ee
commit
fcdd9df1a6
3 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue