Bash: Tweak git-bitbucket and npm-grunt aliases.
This commit is contained in:
parent
d1dd6df0c5
commit
935a8bfc90
@ -149,7 +149,7 @@ function git-github() {
|
|||||||
function git-bitbucket() {
|
function git-bitbucket() {
|
||||||
user="sapegin"
|
user="sapegin"
|
||||||
repo=${1-`basename "$(pwd)"`}
|
repo=${1-`basename "$(pwd)"`}
|
||||||
git remote add origin "https://$user@bitbucket.org/$user/$repo.git"
|
git remote add origin "git@bitbucket.org:$user/$repo.git"
|
||||||
git push -u origin master
|
git push -u origin master
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -163,7 +163,7 @@ function npm-grunt() {
|
|||||||
tasks=(`grep -oP "(?<=loadNpmTasks\(['\"])[^'\"]+" grunt.js`)
|
tasks=(`grep -oP "(?<=loadNpmTasks\(['\"])[^'\"]+" grunt.js`)
|
||||||
for task in "${tasks[@]}"
|
for task in "${tasks[@]}"
|
||||||
do
|
do
|
||||||
npm update $task -g
|
npm install $task -g
|
||||||
npm link $task
|
npm link $task
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user