Skip to content

Instantly share code, notes, and snippets.

@azu azu/_README.md
Last active Jan 14, 2019

Embed
What would you like to do?
node-init.sh
# git pushupで、初めてリポジトリにpushするときに自動的にブランチをpush -uしてくれる
[alias]
pushup = "!gitbranchname() { git symbolic-ref --short HEAD; }; gitpushupstream() { git push --set-upstream origin `gitbranchname`; }; gitpushupstream"
mkdev () {
if [ ! -n "$1" ]
then
echo "Usage: mkdev dir-name"
return
fi
local dirName=$1
local rootDir=$(ghq root)
local githubUser="github.com/$(git config user.name)"
if [[ dirName = */* ]]
then
githubUser = "github.com"
fi
local devPath="${rootDir}/${githubUser}/${dirName}"
mkdir -p ${devPath}
cd ${devPath}
}
#!/bin/bash
git init
# https://github.com/simonwhitaker/gibo
gibo Node JetBrains >> .gitignore
# https://github.com/blaix/license-generator
licgen MIT azu
touch README.md
# create dir
mkdir test
mkdir lib
mkdir src
# create package.json
# https://github.com/azu/init-package-json-parcel
init-package-json
# git
git add .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.