dotfiles

Obligatory dotfiles repo
git clone git://git.danielmoch.com/dotfiles.git
Log | Files | Refs

commit 81e60f93b62a9438eaf3124a5b707ad8f10a3646
parent e8d539539bf2cc0307e1971e13ebb20b273c1eff
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Sun, 18 Feb 2018 18:00:28 -0500

Improve dotfiles maintenance

Diffstat:
M.local/bin/my | 2+-
M.local/bin/my-init | 5++++-
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/.local/bin/my b/.local/bin/my @@ -325,7 +325,7 @@ case $command in then cd "$HOME/.dotfiles" status=`git fetch --dry-run` - [ ! "$status" = "" ] && git pull > /dev/null 2>&1 + [ ! "$status" = "" ] && git pull --no-commit > /dev/null 2>&1 elif [ -d "$HOME/.dotfiles_tgz" ] then curl https://danielmoch.com/static/dotfiles.tar.gz > /tmp/dotfiles.tgz.$$ diff --git a/.local/bin/my-init b/.local/bin/my-init @@ -192,8 +192,11 @@ done [ -d "$HOME/.dotfiles" ] && cp "$HOME/.local/lib/dotfiles/pre-push" "$HOME/.dotfiles/.git/hooks/" [ ! -d "$HOME/.local/var/log" ] && mkdir -p "$HOME/.local/var/log" [ ! -d "$HOME/.local/var/forecastio" ] && mkdir -p "$HOME/.local/var/forecastio" +[ ! -f "$HOME/.local/var/forecastio/current_forecast.txt" ] && echo \ + "Weather not available" > \ + "$HOME/.local/var/forecastio/current_forecast.txt" [ ! -d "$HOME/.vim/undo/" ] && mkdir -p "$HOME/.vim/undo" -: > "$HOME/._.djmoch" +touch "$HOME/._.djmoch" chmod 000 "$HOME/._.djmoch" unset __clone __has __optclone_pathogen