Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- complete -f -X '!*.sinew' sinew
- complete -f -X '!*.@(csv|tsv|xls)' gnumeric
- complete -f -X '!*.@(csv|tsv|xls)' oocalc
- complete -f -X '!*.@(csv|tsv|xls)' localc
- complete -f -X '!*.csv' col
- _areas()
- {
- local cur=${COMP_WORDS[COMP_CWORD]}
- COMPREPLY=( $( compgen -W '$( command ls $HOME/dwellable/data | grep -v "^old$")' -- "$cur" ) )
- }
- complete -F _areas cook
- complete -F _areas image_slam
- complete -F _areas inspect
- complete -F _areas -o default inject
- export COMP_WORDBREAKS=${COMP_WORDBREAKS/\:/}
- _rake() {
- local cur=${COMP_WORDS[COMP_CWORD]}
- local cache_file=".rake-complete-cache"
- if [ ! -e Rakefile ]; then
- return
- fi
- if [ ! -e "$cache_file" ]; then
- rake -T | awk '/^rake / {print $2}' > $cache_file
- fi
- local tasks=$( cat $cache_file )
- COMPREPLY=( $( compgen -W "${tasks}" -- $cur ) )
- }
- complete -F _rake -o default -o nospace rake
Add Comment
Please, Sign In to add comment