diff options
author | cbreton <corentin.breton@fullsave.com> | 2019-11-18 08:49:05 +0100 |
---|---|---|
committer | cbreton <corentin.breton@fullsave.com> | 2019-11-18 08:49:05 +0100 |
commit | 58e2e0972d0306af8039e193ca1c1e3ece23b3a7 (patch) | |
tree | edef08014841e84e6450870c3098196d1bca092f /dotfiles/zsh | |
parent | aede510032c61acaf09afb8a4168991680ce0e6d (diff) | |
download | dotfiles_dotdrop-58e2e0972d0306af8039e193ca1c1e3ece23b3a7.tar.xz dotfiles_dotdrop-58e2e0972d0306af8039e193ca1c1e3ece23b3a7.zip |
Don't show date error
Diffstat (limited to 'dotfiles/zsh')
-rwxr-xr-x | dotfiles/zsh/01-aliases.zsh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dotfiles/zsh/01-aliases.zsh b/dotfiles/zsh/01-aliases.zsh index 6888451..4843f94 100755 --- a/dotfiles/zsh/01-aliases.zsh +++ b/dotfiles/zsh/01-aliases.zsh @@ -186,7 +186,7 @@ alias tsad="printf '\033k┐(T_T)┌\033\\'" alias tshrug="printf '\033k┐(\`-\`)┌\033\\'" alias tlol="printf '\033k┐(^0^)┌\033\\'" alias search="~/.scripts/searx.sh" -alias history="IFS=\$'\\n'; for line in \$(cat ~/.zhistory); do echo \$(date --rfc-3339=ns -d @\$(echo \$line | cut -d' ' -f2 | cut -d':' -f1 | grep -e '^[0-9]') | cut -d'.' -f1)' : '\$(echo \$line | cut -d' ' -f2- | cut -d';' -f2-); done" +alias history="IFS=\$'\\n'; for line in \$(cat ~/.zhistory); do echo \$(date --rfc-3339=ns -d @\$(echo \$line | cut -d' ' -f2 | cut -d':' -f1 | grep -e '^[0-9]') 2> /dev/null | cut -d'.' -f1)' : '\$(echo \$line | cut -d' ' -f2- | cut -d';' -f2-); done" alias historyt="cat .zhistory | cut -d' ' -f2- | cut -d';' -f2- | awk '{CMD[\$1]++;count++;}END { for (a in CMD)print CMD[a] \" \" CMD[a]/count*100 \"% \" a;}' | grep -v \"./\" | column -c3 -s \" \" -t | sort -nr | nl | head -n10" alias myip="~/.scripts/ip.sh" alias firefoxclean="cd browser-home_bak; ./launch.sh" |