dotfiles

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

commit 0ae23e43b10652817a7a8edd859ce8cb83d64af2
parent c8f40dbe11eb4d7c58a35556fbcaff99d7a747da
Author: Daniel Moch <daniel@danielmoch.com>
Date:   Thu,  1 Feb 2018 04:49:14 -0500

my-init: Minor improvements

Diffstat:
M.local/bin/my-init | 10++++++----
1 file changed, 6 insertions(+), 4 deletions(-)

diff --git a/.local/bin/my-init b/.local/bin/my-init @@ -11,7 +11,7 @@ __has() for token in $@ do type $token > /dev/null 2>&1 - [ $? -ne 0 ] && echo "$token doesn't exist" && return 1 + [ $? -ne 0 ] && echo " $token doesn't exist" && return 1 done return 0 } @@ -26,8 +26,8 @@ __clone() __optclone_pathogen() { - vim --cmd "redir! > /tmp/djmoch-vimpackages | silent echo has('packages') | q" - case `cat /tmp/djmoch-vimpackages` in + vim --cmd "redir! > /tmp/vimpackages.$$ | silent echo has('packages') | q" + case `cat /tmp/vimpackages.$$` in *0*) echo -n " Cloning tpope/vim-pathogen ... " git clone https://github.com/tpope/vim-pathogen.git > /dev/null 2>&1 @@ -46,7 +46,7 @@ then rm -rf "$HOME/.terminfo" rm -rf "$vim_bundle_path" rm "$HOME/.less" - type crontab > /dev/null 2>&1 && crontab -r + type crontab > /dev/null 2>&1 && crontab -r > /dev/null 2>&1 fi # Terminfo @@ -109,6 +109,8 @@ then cd - > /dev/null 2>&1 fi +[ ! -d "$HOME/.local/var/log" ] && mkdir "$HOME/.local/var/log" + if [ ! -f "$HOME/._.djmoch" ] then touch "$HOME/._.djmoch"