Skip to content

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

Open
skatkov wants to merge 1 commit intojeffreyiacono:masterfrom
skatkov:master
Open

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

Conversation

@skatkov
Copy link

@skatkov skatkov commented May 25, 2025

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
Copy link
Author

skatkov commented Jun 4, 2025

@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