From 935a8bfc90e8281b9477a7ca7cd6d0d0a5af8291 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Wed, 28 Nov 2012 01:04:14 +0400 Subject: [PATCH] Bash: Tweak git-bitbucket and npm-grunt aliases. --- includes/bash_functions.bash | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/bash_functions.bash b/includes/bash_functions.bash index e2e0610..ddaea2d 100644 --- a/includes/bash_functions.bash +++ b/includes/bash_functions.bash @@ -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 }