fork/fish-shell

git clone https://git.julia.blue/fork/fish-shell

Johannes AltmanningerPrepare to not localize private function descriptionsd835c5252

master
1.0 KiB30 linesraw
1# localization: tier3
2function __fish_complete_zfs_mountpoint_properties
3    set -l OS ""
4    switch (uname)
5        case Linux
6            set OS Linux
7        case Darwin
8            set OS macOS
9        case FreeBSD
10            set OS FreeBSD
11        case SunOS
12            set OS SunOS
13            # Others?
14        case "*"
15            set OS unknown
16    end
17    echo -e "atime\tUpdate access time on read (on, off)"
18    echo -e "devices\tAre contained device nodes openable (on, off)"
19    echo -e "exec\tCan contained executables be executed (on, off)"
20    echo -e "readonly\tRead-only (on, off)"
21    echo -e "setuid\tRespect set-UID bit (on, off)"
22    if test $OS = SunOS
23        echo -e "nbmand\tMount with Non Blocking mandatory locks (on, off)"
24        echo -e "xattr\tExtended attributes (on, off, sa)"
25    else if test $OS = Linux
26        echo -e "nbmand\tMount with Non Blocking mandatory locks (on, off)"
27        echo -e "relatime\tSometimes update access time on read (on, off)"
28        echo -e "xattr\tExtended attributes (on, off, sa)"
29    end
30end