mirror of
https://github.com/vale981/tridactyl
synced 2025-03-05 09:31:41 -05:00
Add clone yank to tridactylrc
This commit is contained in:
parent
5a878b5b43
commit
680bd16b8f
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
"
|
||||
|
|
Loading…
Add table
Reference in a new issue