Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
1c1862e582
commit
aae4bdcda9
8 changed files with 12 additions and 11 deletions
|
|
@ -20,7 +20,7 @@
|
|||
domain="''${BASH_REMATCH[2]}"
|
||||
|
||||
if [[ "$domain" == "ssh.oliverdavies.uk" ]]; then
|
||||
domain="code.oliverdavies.uk"
|
||||
domain="git.oliverdavies.uk"
|
||||
fi
|
||||
|
||||
user="''${BASH_REMATCH[3]}"
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ in
|
|||
text = ''
|
||||
repo_url=$(git remote get-url origin | sed -E 's#(git|forgejo)@([A-Za-z0-9.-]+):#https://\2/#;s#.git$##')
|
||||
|
||||
repo_url="''${repo_url//ssh.oliverdavies.uk/code.oliverdavies.uk}"
|
||||
repo_url="''${repo_url//ssh.oliverdavies.uk/git.oliverdavies.uk}"
|
||||
|
||||
xdg-open "$repo_url"
|
||||
'';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue