aboutsummaryrefslogtreecommitdiff
path: root/functions/gf
diff options
context:
space:
mode:
authorCamil Staps2016-02-09 13:33:49 +0100
committerCamil Staps2016-11-30 19:11:06 +0100
commitae4fdb755a6e07e9f86ae34551987a446092f0db (patch)
tree2b754ae5b224c3d9fe7d073228d220555fcebac1 /functions/gf
parenttype pass (diff)
zsh
Diffstat (limited to 'functions/gf')
-rw-r--r--functions/gf4
1 files changed, 4 insertions, 0 deletions
diff --git a/functions/gf b/functions/gf
new file mode 100644
index 0000000..0de3e89
--- /dev/null
+++ b/functions/gf
@@ -0,0 +1,4 @@
+gf() {
+ local branch=$1
+ git checkout -b $branch origin/$branch
+} \ No newline at end of file