Permalink
Browse files

log in DOTTO_LOCAL/log

  • Loading branch information...
1 parent e357c03 commit d55e14c87152d069bf3fbf72887c5b678c79f829 @rsanders committed Feb 15, 2012
Showing with 10 additions and 7 deletions.
  1. +0 −1 log/.gitignore
  2. +4 −1 zsh/functions/zlog
  3. +1 −4 zsh/plugins/dotto_core/functions/dclog
  4. +5 −1 zsh/plugins/dotto_core/zshrc.d/history.zsh
View
@@ -1 +0,0 @@
-*
View
@@ -4,5 +4,8 @@
local REPLY=""
if [[ $DOTTO_DEBUG == 1 || $ZLOG_DEBUG == 1 ]]; then
- echo "`date`: $*" >>! $DOTTODIR/log/zlog.log 2>/dev/null
+ if [[ ! -d $DOTTO_LOCAL/log ]]; then
+ mkdir -p $DOTTO_LOCAL/log
+ fi
+ echo "`date`: $*" >>! $DOTTO_LOCAL/log/zlog.log 2>/dev/null
fi
@@ -4,8 +4,5 @@ function dclog {
emulate -L zsh
local REPLY=""
- echo "`date`: $*" >>! $DOTTODIR/log/zlog.log 2>/dev/null
+ echo "`date`: $*" >>! $DOTTO_LOCAL/log/zlog.log 2>/dev/null
}
-
-echo "DCLOG LOADED!"
-
@@ -15,7 +15,11 @@ setopt HIST_IGNORE_SPACE
## Command history configuration
#
-typeset -g HISTFILE=$DOTTODIR/log/.zsh_history
+
+if [[ ! -d $DOTTO_LOCAL/log ]]; then
+ mkdir -p $DOTTO_LOCAl/log
+fi
+typeset -g HISTFILE=$DOTTO_LOCAL/log/zsh_history
typeset -g HISTSIZE=2500
typeset -g SAVEHIST=2500

0 comments on commit d55e14c

Please sign in to comment.