diff options
Diffstat (limited to 'share/functions/open.fish')
-rw-r--r-- | share/functions/open.fish | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/share/functions/open.fish b/share/functions/open.fish index 140269ee..8c8d9b9d 100644 --- a/share/functions/open.fish +++ b/share/functions/open.fish @@ -6,6 +6,14 @@ if not test (uname) = Darwin function open -d (N_ "Open file in default application") + if count $argv >/dev/null + switch $argv[1] + case -h --h --he --hel --help + __fish_print_help dirh + return 0 + end + end + if type -f xdg-open >/dev/null xdg-open $argv else |