diff options
| author | Thomas Weißschuh <thomas@t-8ch.de> | 2023-12-31 14:10:01 +0100 |
|---|---|---|
| committer | Thomas Weißschuh <thomas@t-8ch.de> | 2024-01-02 11:38:34 +0100 |
| commit | 2295e66361c82eb371d017f993aad4a2c6a3c6ea (patch) | |
| tree | 6047e265c1100276fb7f63abc26010b69de85cef /bash-completion | |
| parent | fd3388c5895a79a2f6630b7bff7c5388c72f1f55 (diff) | |
| download | util-linux-2295e66361c82eb371d017f993aad4a2c6a3c6ea.tar.gz | |
wipefs: allow storage of backups in specific location
This also avoids cluttering the home directory during test execution.
Signed-off-by: Thomas Weißschuh <thomas@t-8ch.de>
Diffstat (limited to 'bash-completion')
| -rw-r--r-- | bash-completion/wipefs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bash-completion/wipefs b/bash-completion/wipefs index 8e49a8bda1..de172725b1 100644 --- a/bash-completion/wipefs +++ b/bash-completion/wipefs @@ -5,6 +5,10 @@ _wipefs_module() cur="${COMP_WORDS[COMP_CWORD]}" prev="${COMP_WORDS[COMP_CWORD-1]}" case $prev in + '-b'|'--backup') + COMPREPLY=( $(compgen -o dirnames -- ${cur:-"/"}) ) + return 0 + ;; '-O'|'--output') local prefix realcur OUTPUT_ALL OUTPUT realcur="${cur##*,}" |
