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