mirror of
https://github.com/fish-shell/fish-shell
synced 2025-01-13 21:44:16 +00:00
Make __fish_print_mounted work better on OS X
This commit is contained in:
parent
7561075af8
commit
3816abb9de
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,7 @@
|
||||||
function __fish_print_mounted --description 'Print mounted devices'
|
function __fish_print_mounted --description 'Print mounted devices'
|
||||||
cat /etc/mtab | cut -d " " -f 1-2|tr " " \n|sed -e "s/[0-9\.]*:\//\//"|sgrep "^/"
|
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
|
end
|
||||||
|
|
Loading…
Reference in a new issue