]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - bash-completion/rename
su: use lib/pty-session.c code for --pty
[thirdparty/util-linux.git] / bash-completion / rename
index 0fe4cc64b1999c0fc2ab6eef507624e23c1935ca..9fc1ceca38a0dd725940525b3985f46738bf9538 100644 (file)
@@ -3,9 +3,15 @@ _rename_module()
        local cur prev OPTS
        COMPREPLY=()
        cur="${COMP_WORDS[COMP_CWORD]}"
+       prev="${COMP_WORDS[COMP_CWORD-1]}"
+       case $prev in
+               '-h'|'--help'|'-V'|'--version')
+                       return 0
+                       ;;
+       esac
        case $cur in
                -*)
-                       OPTS="-v --verbose -s --symlink  -h --help -V --version"
+                       OPTS="--verbose --symlink --help --version --no-act --no-override --interactive"
                        COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
                        return 0
                        ;;
@@ -18,6 +24,7 @@ _rename_module()
                        COMPREPLY=( $(compgen -W "replacement" -- $cur) )
                        ;;
                *)
+                       local IFS=$'\n'
                        compopt -o filenames
                        COMPREPLY=( $(compgen -f -- $cur) )
                        ;;