Browse Source

Configure history

master
Brett Langdon 8 years ago
parent
commit
c2ff1a7443
No known key found for this signature in database GPG Key ID: B664881177781B04
2 changed files with 17 additions and 3 deletions
  1. +8
    -0
      zshrc.d/.env.zsh
  2. +9
    -3
      zshrc.d/lib/aliases.sh

+ 8
- 0
zshrc.d/.env.zsh View File

@ -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"


+ 9
- 3
zshrc.d/lib/aliases.sh View File

@ -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"'

Loading…
Cancel
Save