Last active
August 29, 2015 14:05
-
-
Save koyudoon/ff7689f201444cf43fcb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# require: [zsh, git, ghq, porg] | |
HOME_BIN="${HOME_BIN:-$HOME/bin}" | |
ZSH_COMP_DIR="${ZSH_COMP_DIR:-$HOME/.zsh/vendor/completion}" | |
GHQ_DIR="${GHQ_DIR:-$(\ | |
eval printf '%s' "$(git config --get 'ghq.root')"\ | |
)}" | |
GIBO="${GIBO:-simonwhitaker/gibo}" | |
GIBO_DIR="$GHQ_DIR/github.com/$GIBO" | |
SKEL="${SKEL:-github/gitignore}" | |
SKEL_DIR="$GHQ_DIR/github.com/$SKEL" | |
[ -d "$GIBO_DIR" ] || ghq get "$GIBO" | |
[ -d "$SKEL_DIR" ] || ghq get "$SKEL" | |
porg -lp 'gibo' "ln --symbolic --verbose \ | |
$GIBO_DIR/gibo \ | |
$HOME_BIN/" | |
porg -lp+ 'gibo' "ln --symbolic --verbose \ | |
$GIBO_DIR/gibo-completion.zsh \ | |
$ZSH_COMP_DIR/_gibo" | |
porg -lp+ 'gibo' "ln --symbolic --verbose \ | |
$SKEL_DIR \ | |
$HOME/.gitignore-boilerplates" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
update
uninstall