Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 1e2ef1a130
Fetching contributors…

Cannot retrieve contributors at this time

executable file 21 lines (17 sloc) 0.496 kB
#-*- mode: shell-script;-*-
# cheat_fu command line completion.
# Copyright 2011 Jose Pablo Barrantes <xjpablobrx@gmail.com>
# Licensed under MIT
: ${have=$(command -v cheat_fu)}
test -n "$have" &&
_cheat_fu_complete()
{
COMPREPLY=()
HOME=~
if [ $COMP_CWORD = 1 ]; then
sheets=`cheat_fu -l | sed s:$HOME/.cheat_fu_sheets/::g | sed s:\.1\.ronn::g`
COMPREPLY=(`compgen -W "$sheets" -- $2`)
fi
return 0
}
test -n "$have" && complete -F _cheat_fu_complete -o default cheat_fu ct
Jump to Line
Something went wrong with that request. Please try again.