2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-19 16:34:24 +00:00
fish-shell/share/functions/__fish_print_mounted.fish
2013-09-05 11:40:51 -07:00

7 lines
269 B
Fish

function __fish_print_mounted --description 'Print mounted devices'
if test (uname) = Darwin
mount | cut -d " " -f 1-2|tr " " \n|sed -e "s/[0-9\.]*:\//\//"|sgrep "^/"
else
cat /etc/mtab | cut -d " " -f 1-2|tr " " \n|sed -e "s/[0-9\.]*:\//\//"|sgrep "^/"
end
end