فهرست منبع

Create a function to cd to a git repo root

DricomDragon 5 سال پیش
والد
کامیت
cb02b3c5b2
1فایلهای تغییر یافته به همراه5 افزوده شده و 0 حذف شده
  1. 5 0
      Install/Templates/fish/functions/cdg.fish

+ 5 - 0
Install/Templates/fish/functions/cdg.fish

@@ -0,0 +1,5 @@
+function cdg --description 'Go to root folder of the current Git repository'
+    if set -l GIT_ROOT (git rev-parse --show-toplevel)
+		cd $GIT_ROOT
+	end
+end