]> git.ipfire.org Git - thirdparty/util-linux.git/blobdiff - bash-completion/readprofile
login: add support for directories in MOTD_FILE=
[thirdparty/util-linux.git] / bash-completion / readprofile
index 41454a3730cb4ec8d48d28205ea96c9b4266c9e3..bd265a69a220f023d1251792fa5a1324c4fb0f9b 100644 (file)
@@ -6,6 +6,7 @@ _readprofile_module()
        prev="${COMP_WORDS[COMP_CWORD-1]}"
        case $prev in
                '-m'|'--mapfile'|'-p'|'--profile')
+                       local IFS=$'\n'
                        compopt -o filenames
                        COMPREPLY=( $(compgen -f -- $cur) )
                        return 0
@@ -18,18 +19,18 @@ _readprofile_module()
                        return 0
                        ;;
        esac
-       OPTS="-m --mapfile
-               -p --profile
-               -M --multiplier
-               -i --info
-               -v --verbose
-               -a --all
-               -b --histbin
-               -s --counters
-               -r --reset
-               -n --no-auto
-               -h --help
-               -V --version"
+       OPTS="--mapfile
+               --profile
+               --multiplier
+               --info
+               --verbose
+               --all
+               --histbin
+               --counters
+               --reset
+               --no-auto
+               --help
+               --version"
        COMPREPLY=( $(compgen -W "${OPTS[*]}" -- $cur) )
        return 0
 }