Bash: Tweak git-bitbucket and npm-grunt aliases.

This commit is contained in:
Artem Sapegin 2012-11-28 01:04:14 +04:00
parent d1dd6df0c5
commit 935a8bfc90
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ function git-github() {
function git-bitbucket() {
user="sapegin"
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
}
@ -163,7 +163,7 @@ function npm-grunt() {
tasks=(`grep -oP "(?<=loadNpmTasks\(['\"])[^'\"]+" grunt.js`)
for task in "${tasks[@]}"
do
npm update $task -g
npm install $task -g
npm link $task
done
}