Skip to content

Commit

Permalink
Adding unlimited history to zshrc and ignoring history file in .gitig…
Browse files Browse the repository at this point in the history
…nore
  • Loading branch information
[email protected] committed Feb 10, 2014
1 parent a0c6fe1 commit 76ae692
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ vim/syntasticthing.txt
X/awesome/current_theme
X/awesome/themes
*un~
.zsh_eternal_history
12 changes: 12 additions & 0 deletions zsh/zshrc.symlink
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,18 @@ export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr
export RUBYOPT=rubygems
export RUBYLIB=puppet-puppetdbquery/lib:$RUBYLIB
export VAGRANT_DEFAULT_PROVIDER=vmware_fusion

# Unlimited history
export HISTFILESIZE=
export HISTSIZE=
export HISTTIMEFORMAT="[%F %T] "
# Change the file location because certain bash sessions truncate .bash_history file upon close.
# # http://superuser.com/questions/575479/bash-history-truncated-to-500-lines-on-each-login
export HISTFILE=~/dotfiles/.zsh_eternal_history
# Force prompt to write history after every command.
# # http://superuser.com/questions/20900/bash-history-loss
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"

#export ZSH=$HOME/dotfiles
#export PROJECTS=~/Code
#export WORK=~/PuppetLabs
Expand Down

0 comments on commit 76ae692

Please sign in to comment.