You can't. The open command is a fish function:
/usr/share/fish/functions/open.fish
But all it does is invoking xdg-open or mimedb -l.
So you could write something like this in your bashrc to get the same
thing:
if which xdg-open > /dev/null
then
alias open=xdg-open
else
alias open='mimedb -l --'
fi
On Tue, Sep 02, 2008 at 04:11:58AM -0700, Good Bad wrote:
> how can i use fish's open command in other shells such as bash?
>
>
>
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Fish-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fish-users
--
Henry PrĂȘcheur
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fish-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fish-users