mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-12-13 17:34:00 +08:00
c2970f9618
This runs build_tools/style.fish, which runs clang-format on C++, fish_indent on fish and (new) black on python. If anything is wrong with the formatting, we should fix the tools, but automated formatting is worth it.
30 lines
1.2 KiB
Fish
30 lines
1.2 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\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
|