dot

packages and services management
Log | Files | Refs | README

commit 8db9d927a881333139d376dd9423d31cb5a05c28
parent 461a57f6f31b02614719879c789d8e6e281ff4d5
Author: josuah <mail@josuah.net>
Date:   Tue, 11 Oct 2016 11:14:15 -0400

Great config command with subcommands

Diffstat:
Rbin/.config/bin/agenda -> bin/.config/agenda | 0
Rbin/.config/bin/bkm -> bin/.config/bkm | 0
Rbin/.config/bin/read -> bin/.config/feeds/read | 0
Rbin/.config/bin/urls -> bin/.config/feeds/urls | 0
Rbin/.config/bin/todo -> bin/.config/todo | 0
Mbin/config | 2+-
Mbin/config-build | 4++--
Mbin/config-vim | 10++++++----
Mvim/.vim/plugins | 2+-
9 files changed, 10 insertions(+), 8 deletions(-)

diff --git a/bin/.config/bin/agenda b/bin/.config/agenda diff --git a/bin/.config/bin/bkm b/bin/.config/bkm diff --git a/bin/.config/bin/read b/bin/.config/feeds/read diff --git a/bin/.config/bin/urls b/bin/.config/feeds/urls diff --git a/bin/.config/bin/todo b/bin/.config/todo diff --git a/bin/config b/bin/config @@ -32,7 +32,7 @@ COMMAND" [ $# -eq 0 ] && help -if [ -l "$0-$1"* -o -f "$0-$1"* ] +if [ -f "$0-$1"* ] then subcommand="$1" shift diff --git a/bin/config-build b/bin/config-build @@ -15,9 +15,9 @@ CONFIG="${CONFIG:-$HOME/Config}" help() { printf '%s\n' " -Usage: ${0##*-} OPTION PACKAGE +Usage: ${0##*-} COMMAND PACKAGE -OPTION +COMMAND d[ownload] Download PACKAGE's sources i[nstall] Download then install PACKAGE r[emove] Remove build PACKAGE and its sources diff --git a/bin/config-vim b/bin/config-vim @@ -4,12 +4,14 @@ bundle=~/.vim/bundle [ -d "$bundle" ] && rm -r "$bundle" ~/.vim/autoload/pathogen.vim mkdir -p "$bundle" ~/.vim/autoload -wget -qO ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim +wget -qO ~/.vim/autoload/pathogen.vim http://tpo.pe/pathogen.vim -sed '/^[[:space:]]*$/ d; /^[[:space:]]*#/d;' | while read plugin +# Remove empty lines and command, download the plugins and extract them +for plugin in $(sed 's/^[[:space:]]*#.*//; /^[[:space:]]*$/ d;' ~/.vim/plugins) do - wget -O- "http://github.com/$plugin/archive/master.tar.gz" | - tar -xvz -f- -C "$bundle" 1> /dev/null & + printf 'Downloading %s\n' "$plugin" + wget -qO- "http://github.com/$plugin/archive/master.tar.gz" | + tar -xvz -f- -C "$bundle" 1> /dev/null & done wait diff --git a/vim/.vim/plugins b/vim/.vim/plugins @@ -1,7 +1,7 @@ mbbill/undotree tpope/vim-surround tommcdo/vim-lion -junegunn/fzf-vim +junegunn/fzf.vim airblade/vim-gitgutter wlangstroth/vim-racket jiangmiao/auto-pairs