Closed felixschndr closed 3 years ago
Bash Completion mit complete -W "diff pull $("ls")" diff
oder so ähnlich, files in Ordner werden nicht vorgeschlagen, Ordner werden als files vorgeschlagen. find . -type f wäre wahrscheinlich zu viel, da es auch git files anzeigt
Autocompletion mit
complete -F _longopt -W "diff pull" diff
gelöst
┌─[21:13:27]-[:)]-[openhabian@openhab]-[/home/openhabian/bashrc/ (master)]
└──> diff <TAB> <TAB>
default/ diff fixer frank/ .git/ .gitignore openhab/ pull README.md sourcer updater
Praktisch, wenn man nur ein File bearbeitet hat, aber noch andere Files uncommitted sind