diff options
-rwxr-xr-x | _offlineimap/offlineimap.py | 6 | ||||
-rw-r--r-- | _zsh/history.zsh | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/_offlineimap/offlineimap.py b/_offlineimap/offlineimap.py index 7d9d2fd..9a60d99 100755 --- a/_offlineimap/offlineimap.py +++ b/_offlineimap/offlineimap.py @@ -21,7 +21,7 @@ # # Aaron LI # Created: 2015-02-02 -# Updated: 2016-01-11 +# Updated: 2016-01-29 # @@ -31,9 +31,9 @@ import subprocess def mailpasswd(account): account = os.path.basename(account) - path = '{0}/.offlineimap/{1}.gpg'.format(os.environ['HOME'], account) + passfile = os.path.expanduser('~/.private/{0}.gpg'.format(account)) args = ['gpg2', '--for-your-eyes-only', '--no-tty', - '--quiet', '--batch', '--decrypt', path] + '--quiet', '--batch', '--decrypt', passfile] try: return subprocess.check_output(args).strip() except subprocess.CalledProcessError: diff --git a/_zsh/history.zsh b/_zsh/history.zsh index dd7997e..b668ed4 100644 --- a/_zsh/history.zsh +++ b/_zsh/history.zsh @@ -3,8 +3,8 @@ # # history settings -HISTSIZE=10000 -SAVEHIST=9000 +HISTSIZE=1000 +SAVEHIST=800 HISTFILE=~/.zsh_history # vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: # |