mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
9367d4ff71
This does not include checks/function.fish because that currently includes a "; end" in a message that indent would remove, breaking the test.
29 lines
1.1 KiB
Fish
29 lines
1.1 KiB
Fish
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\tUpdate access time on read (on, off)"
|
|
echo -e "devices\tAre contained device nodes openable (on, off)"
|
|
echo -e "exec\tCan contained executables be executed (on, off)"
|
|
echo -e "readonly\tRead-only (on, off)"
|
|
echo -e "setuid\tRespect set-UID bit (on, off)"
|
|
if test $OS = SunOS
|
|
echo -e "nbmand\tMount with Non Blocking mandatory locks (on, off)"
|
|
echo -e "xattr\tExtended attributes (on, off, sa)"
|
|
else if test $OS = Linux
|
|
echo -e "nbmand\tMount with Non Blocking mandatory locks (on, off)"
|
|
echo -e "relatime\tSometimes update access time on read (on, off)"
|
|
echo -e "xattr\tExtended attributes (on, off, sa)"
|
|
end
|
|
end
|