Guest User

Untitled

a guest
May 25th, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #!/usr/bin/env bash
  2.  
  3. pushmod() {
  4. local root=`git rev-parse --show-toplevel`
  5. local dir=`git config --file "$root/.gitmodules" --get-regexp path | cut -d" " -f2- | sed "\\\$q;${1:-1}q;d"`
  6. pushd "$root/$dir"
  7. }
Add Comment
Please, Sign In to add comment