aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron LI <aaronly.me@gmail.com>2016-01-30 21:35:09 +0800
committerAaron LI <aaronly.me@gmail.com>2016-01-30 21:35:09 +0800
commit8dc4099b9cab04c7ba824ea3f2b3f4a41da8b034 (patch)
tree47b71a8f9e20ff55661125797371713149eeb0aa
parent1a80abd95d93db9e0a3b0646bd346ee9e6a5fcd5 (diff)
downloaddotfiles-8dc4099b9cab04c7ba824ea3f2b3f4a41da8b034.tar.bz2
small adjustments
-rwxr-xr-x_offlineimap/offlineimap.py6
-rw-r--r--_zsh/history.zsh4
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: #