summaryrefslogtreecommitdiffstats
path: root/Completion/User/_rlogin
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-04-15 18:18:42 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-04-15 18:18:42 +0000
commit7a0415cfd70a02b2280d27556c6c54cef1c86e1a (patch)
tree37a88a1c4611ee37f2a3209873fc9a34a2624587 /Completion/User/_rlogin
parentzsh-3.1.5-pws-10 (diff)
downloadzsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar
zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar.gz
zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar.bz2
zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar.lz
zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar.xz
zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.tar.zst
zsh-7a0415cfd70a02b2280d27556c6c54cef1c86e1a.zip
zsh-3.1.5-pws-11zsh-3.1.5-pws-11
Diffstat (limited to 'Completion/User/_rlogin')
-rw-r--r--Completion/User/_rlogin10
1 files changed, 5 insertions, 5 deletions
diff --git a/Completion/User/_rlogin b/Completion/User/_rlogin
index e36554f23..5d6daef9b 100644
--- a/Completion/User/_rlogin
+++ b/Completion/User/_rlogin
@@ -1,9 +1,9 @@
#defcomp rlogin rsh ssh
-if [[ -position 1 ]]; then
- complist -k hosts
-elif [[ -position 2 ]]; then
- complist -k '(-l)'
+if [[ CURRENT -eq 2 ]]; then
+ compgen -k hosts
+elif [[ CURRENT -eq 3 ]]; then
+ compgen -k '(-l)'
else
- complist -u
+ compgen -u
fi