gg.fish 155 B

12345
  1. function gg --description 'Go to root folder of the current Git repository'
  2. if set -l GIT_ROOT (git rev-parse --show-toplevel)
  3. cd $GIT_ROOT
  4. end
  5. end