Sha256: a59f296453554fedc28fa87bc590132db0f388f9579505844b08a3fdc6033f6f
Contents?: true
Size: 600 Bytes
Versions: 18
Compression:
Stored size: 600 Bytes
Contents
#!/bin/zsh _pantograph_complete() { local word completions word="$1" # look for Pantfile either in this directory or pantograph/ then grab the lane names if [[ -e "Pantfile" ]] then file="Pantfile" elif [[ -e "pantograph/Pantfile" ]] then file="pantograph/Pantfile" elif [[ -e ".pantograph/Pantfile" ]] then file=".pantograph/Pantfile" fi # parse 'beta' out of 'lane :beta do', etc completions=`cat $file | grep "^\s*lane \:" | awk -F ':' '{print $2}' | awk -F ' ' '{print $1}'` completions="$completions update_pantograph" reply=( "${(ps:\n:)completions}" ) }
Version data entries
18 entries across 18 versions & 1 rubygems