Skip to content

Instantly share code, notes, and snippets.

View chentex's full-sized avatar

Vicente Zepeda Mas chentex

  • Red Hat
  • Nuremberg
View GitHub Profile
@chentex
chentex / pr.md
Created October 17, 2018 14:29 — forked from piscisaureus/pr.md
Checkout github pull requests locally

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:

@chentex
chentex / tmux.conf
Last active March 3, 2021 22:20 — forked from spicycode/tmux.conf
The best and greatest tmux.conf ever
0 is too far from ` ;)
set -g base-index 1
# Automatically set window title
set-window-option -g automatic-rename on
set-option -g set-titles on
#set -g default-terminal screen-256color
set -g status-keys vi
set -g history-limit 10000