# HG changeset patch # User Oleksandr Gavenko # Date 1424731047 -7200 # Node ID da0dc50393b68a68e276ce29b3ce468ce8478bb2 # Parent 32379c87626c719e1c1d05316e0922e917b2e51e Reindent sources. diff -r 32379c87626c -r da0dc50393b6 .bash_completion.d/firefox --- a/.bash_completion.d/firefox Tue Feb 24 00:36:12 2015 +0200 +++ b/.bash_completion.d/firefox Tue Feb 24 00:37:27 2015 +0200 @@ -2,23 +2,23 @@ _firefox() { - local _opts="--sync --g-fatal-warnings -h -help -migration -ProfileManager \ + local _opts="--sync --g-fatal-warnings -h -help -migration -ProfileManager \ -no-remote -new-instance -safe-mode -jsconsole -browser -new-window -new-tab -preferences -search \ -recording -recording-output -setDefaultBrowser" - local cur prev - cur=${COMP_WORDS[COMP_CWORD]} - [[ $COMP_CWORD != 0 ]] && prev=${COMP_WORDS[COMP_CWORD-1]} - case "$prev" in - -P) - local profile=~/.mozilla/firefox/profiles.ini - if [[ ! -f $profile ]]; then - return; - fi - local names=( $(sed -n '/^Name=/{s/^Name=//;p;}' $profile) ) - COMPREPLY=( $(compgen -W '${names[@]}' -- "$cur") ) - return ;; - esac - COMPREPLY=( $(compgen -W '$_opts' -- $cur) ) - return 0 + local cur prev + cur=${COMP_WORDS[COMP_CWORD]} + [[ $COMP_CWORD != 0 ]] && prev=${COMP_WORDS[COMP_CWORD-1]} + case "$prev" in + -P) + local profile=~/.mozilla/firefox/profiles.ini + if [[ ! -f $profile ]]; then + return; + fi + local names=( $(sed -n '/^Name=/{s/^Name=//;p;}' $profile) ) + COMPREPLY=( $(compgen -W '${names[@]}' -- "$cur") ) + return ;; + esac + COMPREPLY=( $(compgen -W '$_opts' -- $cur) ) + return 0 } && -complete -F _firefox firefox iceweasel + complete -F _firefox firefox iceweasel diff -r 32379c87626c -r da0dc50393b6 .bash_completion.d/gradle --- a/.bash_completion.d/gradle Tue Feb 24 00:36:12 2015 +0200 +++ b/.bash_completion.d/gradle Tue Feb 24 00:37:27 2015 +0200 @@ -2,31 +2,31 @@ _gradle() { - local _opts="-? -h --help -A --dep-tasks -C --cache -D --system-prop -I --init-script -P --project-prop -S --full-stacktrace -a --no-rebuild --all \ + local _opts="-? -h --help -A --dep-tasks -C --cache -D --system-prop -I --init-script -P --project-prop -S --full-stacktrace -a --no-rebuild --all \ -b --build-file -c --settings-file -d --debug -e --embedded -g --gradle-user-home --gui -i --info -m --dry-run --no-opt -p --project-dir \ -q --quiet -r --properties -s --stacktrace -t --tasks -u --no-search-upward -v --version -x --exclude-task \ --continue --daemon --foreground --no-color --no-daemon --offline --parallel --parallel-threads --project-cache-dir --recompile-scripts --refresh --refresh-dependencies \ --rerun-tasks --stop" - local _help_cmds='dependencies dependencyInsight help projects properties tasks' - local _java_cmds='assemble build buildDependents buildNeeded classes compileJava processResources clean cleanTest jar testClasses compileTestJava processTestResources javadoc check test uploadArchives' - local _application_cmds='run startScripts installApp distZip distTar' - local cur prev - cur=${COMP_WORDS[COMP_CWORD]} - [[ $COMP_CWORD != 0 ]] && prev=${COMP_WORDS[COMP_CWORD-1]} - case "$prev" in - -I|--init-script|-b|--build-file|-c|--settings-file|-e|--embedded) - COMPREPLY=( $(compgen -f -- "$cur") ) - return ;; - -g|--gradle-user-home|-p|--project-dir|--project-cache-dir) - COMPREPLY=( $(compgen -d -- "$cur") ) - return ;; - esac - # colonprefixes=${cur%"${cur##*:}"} - COMPREPLY=( $(compgen -W '$_opts $_help_cmds $_java_cmds $_application_cmds' -- $cur) ) - # local i=${#COMPREPLY[*]} - # while [ $((--i)) -ge 0 ]; do - # COMPREPLY[$i]=${COMPREPLY[$i]#"$colonprefixes"} - # done - return 0 + local _help_cmds='dependencies dependencyInsight help projects properties tasks' + local _java_cmds='assemble build buildDependents buildNeeded classes compileJava processResources clean cleanTest jar testClasses compileTestJava processTestResources javadoc check test uploadArchives' + local _application_cmds='run startScripts installApp distZip distTar' + local cur prev + cur=${COMP_WORDS[COMP_CWORD]} + [[ $COMP_CWORD != 0 ]] && prev=${COMP_WORDS[COMP_CWORD-1]} + case "$prev" in + -I|--init-script|-b|--build-file|-c|--settings-file|-e|--embedded) + COMPREPLY=( $(compgen -f -- "$cur") ) + return ;; + -g|--gradle-user-home|-p|--project-dir|--project-cache-dir) + COMPREPLY=( $(compgen -d -- "$cur") ) + return ;; + esac + # colonprefixes=${cur%"${cur##*:}"} + COMPREPLY=( $(compgen -W '$_opts $_help_cmds $_java_cmds $_application_cmds' -- $cur) ) + # local i=${#COMPREPLY[*]} + # while [ $((--i)) -ge 0 ]; do + # COMPREPLY[$i]=${COMPREPLY[$i]#"$colonprefixes"} + # done + return 0 } && -complete -F _gradle gradle + complete -F _gradle gradle diff -r 32379c87626c -r da0dc50393b6 .bash_completion.d/virtualenv --- a/.bash_completion.d/virtualenv Tue Feb 24 00:36:12 2015 +0200 +++ b/.bash_completion.d/virtualenv Tue Feb 24 00:37:27 2015 +0200 @@ -11,6 +11,6 @@ *) COMPREPLY=( $(compgen -d -- $cur) ) esac return 0 -} && \ +} && complete -F _virtualenv virtualenv