Skip to content

Commit

Permalink
Add clone yank to tridactylrc
Browse files Browse the repository at this point in the history
  • Loading branch information
bovine3dom committed Oct 15, 2018
1 parent 5a878b5 commit 680bd16
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .tridactylrc
Expand Up @@ -26,6 +26,9 @@ bind ;c hint -c [class*="expand"],[class="togg"]
" GitHub pull request checkout command to clipboard (only works if you're a collaborator or above)
bind yp composite js document.getElementById("clone-help-step-1").textContent.replace("git checkout -b", "git checkout -B").replace("git pull ", "git fetch ") + "git reset --hard " + document.getElementById("clone-help-step-1").textContent.split(" ")[3].replace("-","/") | yank

" Git{Hub,Lab} git clone via SSH yank
bind yg composite js "git clone " + document.location.href.replace(/https?:\/\//,"git@").replace("/",":").replace(/$/,".git") | clipboard yank

"
" Misc settings
"
Expand Down

0 comments on commit 680bd16

Please sign in to comment.