Skip to content

Adding support for Linux e.g xdg-open utility - #9

Open
skatkov wants to merge 1 commit into
jeffreyiacono:masterfrom
skatkov:master
Open

Adding support for Linux e.g xdg-open utility#9
skatkov wants to merge 1 commit into
jeffreyiacono:masterfrom
skatkov:master

Conversation

@skatkov

@skatkov skatkov commented May 25, 2025

Copy link
Copy Markdown

Problem

The script currently uses the hardcoded open command, which only exists on macOS.

On Linux systems, this causes the script to fail since open is not available by default. It's possible to create an alias in ~/.bashrc to solve this issue

alias open='xdg-open'

Solution

It would be rather nice to support Linux out of the box, without a need for any aliases.

The Script is checking if xdg-open is available or open is. If neither command is available an error will be raised.

@skatkov

skatkov commented Jun 4, 2025

Copy link
Copy Markdown
Author

@jeffreyiacono any chance you may consider adding Linux support to git-open?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant