#!/bin/sh if [ $# -lt 1 ]; then echo "usage: $0 user | global" exit 1 fi case "$1" in user) git clone https://github.com/duskCoder/VimperatorrcBuilder.git tmp && ( python tmp/example.py > user/.vimperatorrc ) rm -rf tmp echo "installing the user configuration..." find user -maxdepth 1 -mindepth 1 -exec cp -ivr {} ~ \; ;; global) echo "installing the global configuration..." find global -maxdepth 1 -mindepth 1 -exec cp -ivr {} / \; ;; *) echo "invalid command" ;; esac