Sha256: 9e1bf88bda742071b308060067c2ef314cb6b38e35cb7f1c597eccf66dc7e346
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
#!/usr/bin/env bash if [ -z $BOOTER_DKLET_RC ]; then : # do nothing else if [ -z $FORCE_RC ]; then echo Warning: has sourced $BOOTER_DKLET_RC! return 1 fi fi BOOTER_DKLET_RC=$(evar=${BASH_SOURCE[0]} ruby -e "puts File.realpath(ENV['evar'])") BOOTER_DKLET_HOME=$(dirname $BOOTER_DKLET_RC) #[ -d "$BOOTER_DKLET_HOME/bin" ] && PATH=$PATH:$BOOTER_DKLET_HOME/bin # default use exe export PATH=$PATH:$BOOTER_DKLET_HOME/exe function dklet(){ tp=${1:-cd} case "$tp" in home|root) echo $BOOTER_DKLET_HOME ;; cd) cd "$BOOTER_DKLET_HOME" ;; rc|vi) vi "$BOOTER_DKLET_RC" $FUNCNAME reload ;; show) cat "$BOOTER_DKLET_RC" ;; reload|source) FORCE_RC=1 source "$BOOTER_DKLET_RC" echo ==has sourced "$BOOTER_DKLET_RC" ;; help|h) type $FUNCNAME ;; ## app related gem) gem query dklet -l ;; gemrelease) $FUNCNAME cd && rake release ;; gemup) $FUNCNAME cd && rake install:local --trace ;; gemdown) gem uninstall dklet --all -x ;; status|st) type -a rundklet ;; test) $FUNCNAME cd && rake test ;; *) $FUNCNAME help ;; esac }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dklet-0.1.2 | dklet.rc |