[Bash-completion-commits] [SCM] bash-completion branch, master, updated. 09045a63b642bfaaa11ed843e6fbbc6bcf907c4e
Ville Skyttä
ville.skytta at iki.fi
Wed Dec 9 19:27:18 UTC 2009
The following commit has been merged in the master branch:
commit d68c8e508a5f3ed77a6a8e07b2abf69cc467302d
Author: Ville Skyttä <ville.skytta at iki.fi>
Date: Wed Dec 9 20:55:45 2009 +0200
Indentation fixes.
diff --git a/contrib/update-alternatives b/contrib/update-alternatives
index a3438d5..6a3f541 100644
--- a/contrib/update-alternatives
+++ b/contrib/update-alternatives
@@ -26,13 +26,13 @@ _update_alternatives()
prev=${COMP_WORDS[COMP_CWORD-1]}
case "$prev" in
- --altdir|--admindir)
- _filedir -d
- return 0
- ;;
- --help|--version)
- return 0
- ;;
+ --altdir|--admindir)
+ _filedir -d
+ return 0
+ ;;
+ --help|--version)
+ return 0
+ ;;
esac
# find which mode to use and how many real args used so far
@@ -45,43 +45,43 @@ _update_alternatives()
done
case $mode in
- --install)
- case $args in
- 1)
- _filedir
+ --install)
+ case $args in
+ 1)
+ _filedir
+ ;;
+ 2)
+ _installed_alternatives
+ ;;
+ 3)
+ _filedir
+ ;;
+ esac
+ ;;
+ --remove)
+ case $args in
+ 1)
+ _installed_alternatives
+ ;;
+ 2)
+ _filedir
+ ;;
+ esac
;;
- 2)
+ --auto)
_installed_alternatives
;;
- 3)
- _filedir
+ --remove-all)
+ _installed_alternatives
;;
- esac
- ;;
- --remove)
- case $args in
- 1)
+ --display)
_installed_alternatives
;;
- 2)
- _filedir
+ --config)
+ _installed_alternatives
;;
- esac
- ;;
- --auto)
- _installed_alternatives
- ;;
- --remove-all)
- _installed_alternatives
- ;;
- --display)
- _installed_alternatives
- ;;
- --config)
- _installed_alternatives
- ;;
- *)
- COMPREPLY=( $( compgen -W '--verbose --quiet --help --version \
+ *)
+ COMPREPLY=( $( compgen -W '--verbose --quiet --help --version \
--altdir --admindir' -- "$cur" ) \
$( compgen -W '--install --remove --auto --display \
--config' -- "$cur" ) )
--
bash-completion
More information about the Bash-completion-commits
mailing list