Skip to content

Instantly share code, notes, and snippets.

@Sekiphp
Created November 19, 2023 21:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sekiphp/56fd8af63b4709868b5caa1b29d58e73 to your computer and use it in GitHub Desktop.
Save Sekiphp/56fd8af63b4709868b5caa1b29d58e73 to your computer and use it in GitHub Desktop.
Simple script for open git repository in brower. Working only for repositories with one specific pattern. Useful for Magento 2.
#!/bin/bash
REPO_NAME=$(basename "$PWD")
$(explorer.exe "https://server.com/project/_git/magento2-"$REPO_NAME"")
@Sekiphp
Copy link
Author

Sekiphp commented Nov 19, 2023

$ cat ~/.bashrc

# WSL: Use default Windows browser for opening tabs in host system
export BROWSER='/mnt/c/Windows/explorer.exe'

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