THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| #!/bin/sh | |
| # Usage: git promote [<remote>[/<branch>]] | |
| # | |
| # Pushes the current branch to remote. | |
| set -e | |
| branch="$(git symbolic-ref --short HEAD)" | |
| remote="${1%/*}" | |
| remote_branch="${1#*/}" |
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| func! ExpandHeadWord() | |
| let [clnum, ccol] = searchpos('\<\k*\%(\k\@!.\)*\%#', 'bcWn') | |
| if ccol >= 1 | |
| return matchstr(strpart(getline(clnum), ccol-1), '^\k*') | |
| else | |
| return "" | |
| endif | |
| endfunc |
| onoremap <buffer> a$ :<c-u>call <SID>LatexTextObject('a')<cr> | |
| xnoremap <buffer> a$ :<c-u>call <SID>LatexTextObject('a')<cr> | |
| onoremap <buffer> i$ :<c-u>call <SID>LatexTextObject('i')<cr> | |
| xnoremap <buffer> i$ :<c-u>call <SID>LatexTextObject('i')<cr> | |
| function! s:LatexTextObject(mode) | |
| if a:mode == 'i' | |
| call search('\$\{1,2}', 'Wbce') | |
| call search('\S', 'W') | |
| normal! my |
Locate the section for your github remote in the .git/config file. It looks like this:
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = git@github.com:joyent/node.git
Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:
| 56k: "https://123.campfirenow.com/images/56k.gif" | |
| bell: ":bell:" | |
| bezos: ":laughing::thought_balloon:" | |
| bueller: "anyone?" | |
| butts: ":open_hands: :smoking:" | |
| clowntown: "https://123.campfirenow.com/images/clowntown.gif" | |
| cottoneyejoe: ":notes::hear_no_evil::notes:" | |
| crickets: "hears crickets chirping" | |
| dadgummit: "dad gummit!! :fishing_pole_and_fish:" | |
| dangerzone: "https://123.campfirenow.com/images/dangerzone.png" |