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

put update alias commands into bash script, npm update fix

This commit is contained in:
Matthias Kretschmann 2014-09-22 17:45:50 +02:00
parent 56c24b0388
commit 21ff97a152
6 changed files with 54 additions and 3 deletions

View File

@ -11,7 +11,7 @@ alias krlc='ssh kremalicious'
alias esp="open -a Espresso"
# Update All The Things
alias update='sudo softwareupdate -i -a; brew update; brew upgrade; brew cleanup; npm update npm -g; npm update -g; rvm get branch master; rvm cleanup all; gem update --system; gem update'
alias update='update.sh'
# Recursively delete `.DS_Store` files
alias cleanup="find . -type f -name '*.DS_Store' -ls -delete"

View File

@ -61,6 +61,7 @@ export ARCHFLAGS="-arch x86_64"
# we want the various sbins on the path along with /usr/local/bin
PATH="$PATH:/usr/local/sbin:/usr/sbin:/sbin"
PATH="/usr/local/bin:$PATH"
[ -d "$HOME/.bin" ] && PATH="$HOME/.bin:$PATH"
# if these bins exist, then add them to the PATH
ANDROID_HOME="/usr/local/opt/android-sdk"

9
bin/npm-upgrade.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/sh
set -e
set -x
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f2)
do
npm -g install "$package"
done

41
bin/update.sh Executable file
View File

@ -0,0 +1,41 @@
#!/bin/bash
#
# OS X
# -------------
sudo softwareupdate -i -a
#
# Homebrew
# -------------
brew update
brew upgrade
brew cleanup
#
# npm
# -------------
# update npm itself
npm update npm -g
# update all global packages
#npm update -g
sh npm-upgrade.sh
#
# Ruby
# -------------
rvm get branch master
rvm cleanup all
#
# Gems
# -------------
gem update --system
gem update

View File

@ -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 inputrc private tm_properties generator.json npmrc"
files="aliases bashrc bash_profile bash_prompt gemrc gitconfig gitignore_global hushlogin inputrc private tm_properties generator.json npmrc bin"
# ----------------------------------------------------------------------
# change to the dotfiles directory

View File

@ -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 inputrc private tm_properties generator.json npmrc"
files="aliases bashrc bash_profile bash_prompt gemrc gitconfig gitignore_global hushlogin inputrc private tm_properties generator.json npmrc bin"
# ----------------------------------------------------------------------
# change to the dotfiles directory