From c2ff1a7443054486069913ee0d519bd003911d62 Mon Sep 17 00:00:00 2001 From: brettlangdon Date: Tue, 19 Jun 2018 11:39:31 -0400 Subject: [PATCH] Configure history --- zshrc.d/.env.zsh | 8 ++++++++ zshrc.d/lib/aliases.sh | 12 +++++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/zshrc.d/.env.zsh b/zshrc.d/.env.zsh index 4223f35..9972e97 100644 --- a/zshrc.d/.env.zsh +++ b/zshrc.d/.env.zsh @@ -1,3 +1,11 @@ +# Configure history +setopt APPEND_HISTORY +setopt EXTENDED_HISTORY +setopt HIST_FIND_NO_DUPS +setopt HIST_SAVE_NO_DUPS +setopt INC_APPEND_HISTORY +setopt INC_APPEND_HISTORY_TIME + export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8 export TERM="xterm-256color" diff --git a/zshrc.d/lib/aliases.sh b/zshrc.d/lib/aliases.sh index 03ea491..c22821d 100644 --- a/zshrc.d/lib/aliases.sh +++ b/zshrc.d/lib/aliases.sh @@ -1,7 +1,13 @@ -alias up="vagrant up && vagrant ssh" -alias stayawake="caffeinate -s -d -i" alias emacs="emacs -nw" + +# macOS +alias stayawake="caffeinate -s -d -i" +alias clear-dns="sudo dscacheutil -flushcache || sudo killall -HUP mDNSResponder" + +# History +alias reload-history="fc -Ri" + +# Docker alias docker-login="aws ecr get-login --no-include-email --region us-east-1 | sh" alias docker-start="open --background /Applications/Docker.app" -alias clear-dns="sudo dscacheutil -flushcache || sudo killall -HUP mDNSResponder" alias docker-top='watch -n 1 "clear && docker top $1"'