this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Install fish install

+50 -2
+3 -2
Makefile
··· 4 4 export WGET = wget -Nq --show-progress 5 5 6 6 export PWD = $(shell pwd) 7 - TARGETS = nvim tmux git conky gdb ruby utils bin 7 + 8 + TARGETS ?= nvim tmux git conky gdb ruby utils bin fish 8 9 9 - all: $(TARGETS) lein 10 + all: $(TARGETS) 10 11 11 12 $(TARGETS): 12 13 $(MAKE) -C $@ install
+8
fish/Makefile
··· 1 + install: 2 + $(WGET) -O- https://raw.githubusercontent.com/wa/wahoo/master/bootstrap.sh | sh || true 3 + $(MAKE) plugins 4 + 5 + plugins: install.fish 6 + fish "$<" 7 + 8 + .PHONY: install
+39
fish/install.fish
··· 1 + #!/usr/bin/env fish 2 + 3 + set PLUGINS fasd hub rbenv thefuck gi rust 4 + 5 + function wa_get_package 6 + for search in $argv 7 + if test -e $WAHOO_PATH/db/pkg/$search 8 + set target pkg/$search 9 + else if test -e $WAHOO_PATH/db/themes/$search 10 + set target themes/$search 11 + else 12 + set -l pkg (basename $search) 13 + if test -e $WAHOO_PATH/pkg/$pkg 14 + echo (wa::err)"Error: $pkg already installed."(wa::off) 1^&2 15 + else 16 + echo (wa::dim)"Trying to clone from URL..."(wa::err) 17 + git clone --recursive -q $search $WAHOO_PATH/pkg/$pkg 18 + and echo (wa::em)"✔ $pkg succesfully installed."(wa::off) 19 + or echo (wa::err)"$pkg is not a valid package/theme."(wa::off) 1^&2 20 + end 21 + continue 22 + end 23 + 24 + if test -e $WAHOO_PATH/$target 25 + echo (wa::em)"Updating $search..."(wa::off) 26 + pushd $WAHOO_PATH/$target 27 + wa_util_sync "origin" >/dev/null ^&1 28 + popd 29 + echo (wa::em)"✔ $search up to date."(wa::off) 30 + else 31 + echo (wa::em)"Installing $search..."(wa::off) 32 + git clone (cat $WAHOO_PATH/db/$target) $WAHOO_PATH/$target >/dev/null ^&1 33 + and echo (wa::em)"✔ $search succesfully installed."(wa::off) 34 + or echo (wa::err)"Could not install package."(wa::off) 1^&2 35 + end 36 + end 37 + end 38 + 39 + wa_get_package $PLUGINS