mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-25 12:49:26 +01:00
bashrc & zshrc: add github-add-pulls
Fetches also GitHub pull requests so they can be interacted without using GitHub web interface. This also checks pull requests for remote upstream. Via http://git.io/-C-0oQ
This commit is contained in:
parent
9b08d843a0
commit
4eaf671fcf
6
bashrc
6
bashrc
@ -842,6 +842,12 @@ function sysctl-undo-mikaela() {
|
||||
set +x
|
||||
}
|
||||
|
||||
# Add GitHub pull requests to fetched things via http://git.io/-C-0oQ
|
||||
github-add-pulls() {
|
||||
git config --add remote.origin.fetch '+refs/pull/*/head:refs/remotes/origin/pr/*'
|
||||
git config --add remote.upstream.fetch '+refs/pull/*/head:refs/remotes/upstream/-pr/*'
|
||||
}
|
||||
|
||||
# .custom
|
||||
if [ -f ~/.custom ]; then
|
||||
source ~/.custom
|
||||
|
5
zshrc
5
zshrc
@ -815,6 +815,11 @@ function sysctl-undo-mikaela() {
|
||||
set +x
|
||||
}
|
||||
|
||||
# Add GitHub pull requests to fetched things via http://git.io/-C-0oQ
|
||||
github-add-pulls() {
|
||||
git config --add remote.origin.fetch '+refs/pull/*/head:refs/remotes/origin/pr/*'
|
||||
git config --add remote.upstream.fetch '+refs/pull/*/head:refs/remotes/upstream/-pr/*'
|
||||
}
|
||||
|
||||
# Source files for miscannellious modifications.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user