dot

packages and services management
Log | Files | Refs | README

commit e9954ea21403b03862abd155293635158f341125
parent 551a85b3bd16b99456d4037ac69465b31b091942
Author: josuah <mail@josuah.net>
Date:   Mon, 23 Jan 2017 13:46:47 +0100

maj

Diffstat:
M.local/bin/version | 10+++++-----
M.vim/vimrc | 4++--
2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/.local/bin/version b/.local/bin/version @@ -2,7 +2,7 @@ # version - Simple version control system to store data using hashs # dependencies: -# mkdir find sort xargs md5sum rm test mv chmod comm sed printf tac tail +# mkdir find sort xargs sha256sum rm test mv chmod comm sed printf tac tail NL=' @@ -60,16 +60,16 @@ new() printf 'making a new revision\n' find . -type f $(exclude .git .version) -print0 | sort -z | - xargs -0 md5sum | tee -a .version/tmp | while read -r hash path + xargs -0 sha256sum | tee -a .version/tmp | while read -r hash path do [ -f ".version/obj/$hash" ] || cp "$path" ".version/obj/$hash" done - chmod -w .version/obj/* .version/rev/* - - new="$(md5sum .version/tmp)" && new="${new%% *}" || exit 1 + new="$(sha256sum .version/tmp)" && new="${new%% *}" || exit 1 mv -f .version/tmp ".version/rev/$new" + chmod -w .version/obj/* .version/rev/* + [ -f .version/history ] && old="$(tail -n 1 .version/history)" || old='' [ -f .version/history ] && [ "$new" = "$old" ] || printf '%s\n' "$new" >> .version/history diff --git a/.vim/vimrc b/.vim/vimrc @@ -27,7 +27,7 @@ set laststatus=0 set showcmd set showmode set ruler -set rulerformat=%30(%3m%=%l:%-8(%c%V%)\ %P%) +set rulerformat=%30(%3m%=%l:%-8(%c%)\ %P%) " searching set smartcase @@ -37,7 +37,7 @@ set incsearch " interface set list -set listchars=tab:\ \ ,trail:-,nbsp:-,extends:>,precedes:< +set listchars=tab:\│\ ,trail:-,nbsp:-,extends:>,precedes:< set number set numberwidth=8 set cursorline