Created
July 26, 2018 00:57
-
-
Save riking/8cd2df6cde29c0d30e073d6f7b954264 to your computer and use it in GitHub Desktop.
Goinfre setup scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ... | |
# usage: mkrmrln <goinfre path> <home folder path> | |
function mkrmrln() { | |
mkdir -p $1 | |
rm -rf $2 | |
ln -s $1 $2 | |
} | |
mkrmrln /goinfre/$(whoami) ~/goinfre | |
mkrmrln ~/goinfre/.gradle ~/.gradle | |
mkrmrln ~/goinfre/.android ~/.android | |
# add more as necessary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Android project | |
# requires https://gist.github.com/riking/8cd2df6cde29c0d30e073d6f7b954264 | |
mkrmrln ~/goinfre/$(basename $(pwd))/gradle-project ./.gradle | |
mkrmrln ~/goinfre/$(basename $(pwd))/root-build ./build | |
mkrmrln ~/goinfre/$(basename $(pwd))/app-build ./app/build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment