Added completions/translations for zfs and zpool

This commit is contained in:
David Guyot
2017-11-23 13:55:59 +01:00
committed by Fabian Homborg
parent 5acbd32c2e
commit dcf9ce6fc5
22 changed files with 21567 additions and 2543 deletions

View File

@@ -0,0 +1,29 @@
function __fish_complete_zfs_mountpoint_properties -d "Completes with ZFS mountpoint properties"
set -l OS ""
switch (uname)
case Linux
set OS "Linux"
case Darwin
set OS "macOS"
case FreeBSD
set OS "FreeBSD"
case SunOS
set OS "SunOS"
# Others?
case "*"
set OS "unknown"
end
echo -e "atime\t"(_ "Update access time on read")" (on, off)"
echo -e "devices\t"(_ "Are contained device nodes openable")" (on, off)"
echo -e "exec\t"(_ "Can contained executables be executed")" (on, off)"
echo -e "readonly\t"(_ "Read-only")" (on, off)"
echo -e "setuid\t"(_ "Respect set-UID bit")" (on, off)"
if test $OS = "SunOS"
echo -e "nbmand\t"(_ "Mount with Non Blocking mandatory locks")" (on, off)"
echo -e "xattr\t"(_ "Extended attributes")" (on, off, sa)"
else if test $OS = "Linux"
echo -e "nbmand\t"(_ "Mount with Non Blocking mandatory locks")" (on, off)"
echo -e "relatime\t"(_ "Sometimes update access time on read")" (on, off)"
echo -e "xattr\t"(_ "Extended attributes")" (on, off, sa)"
end
end