fish-shell/share/functions/__fish_print_mounted.fish
2012-06-13 16:46:13 +04:00

4 lines
156 B
Fish

function __fish_print_mounted --description 'Print mounted devices'
cat /etc/mtab | cut -d " " -f 1-2|tr " " \n|sed -e "s/[0-9\.]*:\//\//"|sgrep "^/"
end