aboutsummaryrefslogtreecommitdiff
path: root/templates/.zsh/functions/rp.zsh
diff options
context:
space:
mode:
Diffstat (limited to 'templates/.zsh/functions/rp.zsh')
-rw-r--r--templates/.zsh/functions/rp.zsh7
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/.zsh/functions/rp.zsh b/templates/.zsh/functions/rp.zsh
new file mode 100644
index 0000000..1db3b16
--- /dev/null
+++ b/templates/.zsh/functions/rp.zsh
@@ -0,0 +1,7 @@
+# GitHub Request Pull
+#
+# Assuming the current git repo's `origin` is on GitHub, open the pull request
+# editor for the current branch.
+function rp() {
+ hub pull-request
+}