dotfiles

configuration files for shell, text editor, graphical environment, etc.
git clone git://src.adamsgaard.dk/dotfiles
Log | Files | Refs | README | LICENSE Back to index

commit 81b65359533b4fdee274947006fe597bd26195ec
parent 8a310f5f7766d0d65064736fb0f2a066d03ab4ac
Author: Anders Damsgaard <anders.damsgaard@geo.au.dk>
Date:   Wed,  3 Feb 2016 14:53:41 -0800

remove old logfile, use short file check for bash_profile

Diffstat:
M.zshrc | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/.zshrc b/.zshrc @@ -61,7 +61,9 @@ function tnew { tmux new-session -As `basename $PWD` } function e () { if [[ $(pgrep emacs --daemon) ]]; then echo starting emacs daemon - emacs --daemon > ~/.emacs-daemon.log 2>&1 + emacsdaemonlog=~/.emacs-daemon.log + [ -f ~/.emacs-daemon.log ] && rm $emacsdaemonlog # delete old logfile + emacs --daemon > $emacsdaemonlog 2>&1 fi emacsclient -t } @@ -235,6 +237,4 @@ alias sha256sum='shasum -a 256' #. /Users/ad/torch/install/bin/torch-activate -if [ -f ~/.bash_profile ]; then - source ~/.bash_profile -fi +[ -f ~/.bash_profile ] && source ~/.bash_profile