1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-12-22 17:23:26 +01:00

add npmrc file: switch to euro registry and make npm less noisy

This commit is contained in:
Matthias Kretschmann 2014-05-23 17:01:28 +02:00
parent b1eec3ddfa
commit a961457441
3 changed files with 13 additions and 7 deletions

View File

@ -1,8 +1,8 @@
#!/bin/bash
#
# creates symlinks from the home directory to
# creates symlinks from the home directory to
# any desired dotfiles in ~/dotfiles
#
#
# adapted from @michaeljsmalley
# https://github.com/michaeljsmalley/dotfiles/blob/master/makesymlinks.sh
########################################################################
@ -14,7 +14,7 @@
# dotfiles directory
dir=~/Projects/dotfiles
# list of files/folders to symlink in homedir
files="aliases bashrc bash_profile bash_prompt gemrc gitconfig gitignore_global hushlogin private tm_properties generator.json"
files="aliases bashrc bash_profile bash_prompt gemrc gitconfig gitignore_global hushlogin private tm_properties generator.json npmrc"
# ----------------------------------------------------------------------
# change to the dotfiles directory
@ -24,7 +24,7 @@ cd $dir
echo "...done"
# ----------------------------------------------------------------------
# create symlinks from the homedir to any files in the ~/dotfiles directory
# create symlinks from the homedir to any files in the ~/dotfiles directory
# specified in $files
# ----------------------------------------------------------------------
for file in $files; do

6
npmrc Normal file
View File

@ -0,0 +1,6 @@
# Use european registry to be faster
registry = http://registry.npmjs.eu
# Make npm less noisy
loglevel = warn

View File

@ -1,7 +1,7 @@
#!/bin/bash
#
# Pull in changes and make new symlinks
#
#
# adapted from @mathiasbynens & @michaeljsmalley
# https://github.com/mathiasbynens/dotfiles/blob/master/bootstrap.sh
# https://github.com/michaeljsmalley/dotfiles/blob/master/makesymlinks.sh
@ -14,7 +14,7 @@
# dotfiles directory
dir=~/Projects/dotfiles
# list of files/folders to symlink in homedir
files="aliases bashrc bash_profile bash_prompt gemrc gitconfig gitignore_global hushlogin private tm_properties generator.json"
files="aliases bashrc bash_profile bash_prompt gemrc gitconfig gitignore_global hushlogin private tm_properties generator.json npmrc"
# ----------------------------------------------------------------------
# change to the dotfiles directory
@ -31,7 +31,7 @@ git pull
echo "...done"
# ----------------------------------------------------------------------
# create symlinks from the homedir to any files in the ~/dotfiles directory
# create symlinks from the homedir to any files in the ~/dotfiles directory
# specified in $files
# ----------------------------------------------------------------------
for file in $files; do