mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +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'
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue