diff options
author | eroen <eroen@occam.eroen.eu> | 2015-01-26 10:07:53 +0100 |
---|---|---|
committer | eroen <eroen@occam.eroen.eu> | 2015-02-10 22:40:19 +0100 |
commit | 2ff73480cef9128c8d12dee214d9400bf269eb70 (patch) | |
tree | acaf259ce4c75524b3b24d959f1279c0a39f93dc /wine.eselect | |
parent | rename remove -> unset (diff) | |
download | eselect-wine-2ff73480cef9128c8d12dee214d9400bf269eb70.tar.gz eselect-wine-2ff73480cef9128c8d12dee214d9400bf269eb70.tar.bz2 eselect-wine-2ff73480cef9128c8d12dee214d9400bf269eb70.zip |
add unset --all
Diffstat (limited to 'wine.eselect')
-rw-r--r-- | wine.eselect | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/wine.eselect b/wine.eselect index 8b7bdd9..cb5a932 100644 --- a/wine.eselect +++ b/wine.eselect @@ -310,10 +310,19 @@ describe_unset_options() { for v in ${VARIANTS[@]}; do echo "--$v : Remove the 'wine-$v' symlinks" done + echo "--all : Unset active wine and all variants" } do_unset() { local variant="" + if has --all "$@"; then + do_unset + for variant in "$VARIANTS"; do + do_unset "--${variant}" + done + return 0 + fi + if has "${1#--}" "${VARIANTS[@]}" ; then variant=${1#--} fi |