diff options
Diffstat (limited to 'Completion/Unix/Command/_mount')
-rw-r--r-- | Completion/Unix/Command/_mount | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Completion/Unix/Command/_mount b/Completion/Unix/Command/_mount index 8fddc4e6f..289f605a2 100644 --- a/Completion/Unix/Command/_mount +++ b/Completion/Unix/Command/_mount @@ -748,17 +748,17 @@ udevordir) local dev_tmp mp_tmp mline case "$OSTYPE" in - freebsd*) + linux*|irix*) + tmp=( "${(@f)$(< /etc/mtab)}" ) + dev_tmp=( "${(@)${(@)tmp%% *}:#none}" ) + mp_tmp=( "${(@)${(@)tmp#* }%% *}" ) + ;; + *) /sbin/mount | while read mline; do dev_tmp=( $dev_tmp $mline[(w)1] ) mp_tmp=( $mp_tmp $mline[(w)3] ) done ;; - *) - tmp=( "${(@f)$(< /etc/mtab)}" ) - dev_tmp=( "${(@)${(@)tmp%% *}:#none}" ) - mp_tmp=( "${(@)${(@)tmp#* }%% *}" ) - ;; esac _alternative \ |