1
0
mirror of https://github.com/kremalicious/dotfiles.git synced 2024-12-22 09:13:22 +01:00
This commit is contained in:
Matthias Kretschmann 2015-03-28 02:42:45 +01:00
parent af88968f7f
commit 8b99d2420c
8 changed files with 22 additions and 32 deletions

View File

@ -2,6 +2,7 @@
# Directories to be prepended to PATH
declare -a dirs_to_prepend=(
"$HOME/.bin"
"/usr/local/sbin"
"/usr/local/bin" # Ensure that this bin always takes precedence over `/usr/bin`
)
@ -9,8 +10,6 @@ declare -a dirs_to_prepend=(
# Directories to be appended to PATH
declare -a dirs_to_append=(
"/usr/bin"
"$HOME/.bin"
"$HOME/.rvm/bin"
"$(brew --prefix coreutils)/libexec/gnubin" # Add brew-installed GNU core utilities bin
"$(brew --prefix)/share/npm/bin" # Add npm-installed package bin
"$(brew --prefix android-sdk)/tools"

View File

@ -12,7 +12,7 @@
# Load ~/.private, ~/.bash_prompt
# ----------------------------------------------------------------------
for file in ~/.{bash_prompt,aliases,exports,paths,private,inputrc}; do
for file in ~/.{bash_paths,bash_prompt,exports,aliases,inputrc,private}; do
[ -r "$file" ] && [ -f "$file" ] && source "$file"
done;
unset file;
@ -59,5 +59,12 @@ complete -C aws_completer aws
# grunt-cli tab completion
eval "$(grunt --completion=bash)"
# ----------------------------------------------------------------------
# rvm
# ----------------------------------------------------------------------
# Add RVM to PATH for scripting
export PATH="$PATH:$HOME/.rvm/bin"
# Load RVM into a shell session *as a function*
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"

View File

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

View File

@ -15,7 +15,7 @@
dir=~/Projects/dotfiles
# list of files/folders to symlink in homedir
files="aliases bashrc bash_profile bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc paths private tm_properties generator.json npmrc bin"
files="aliases bashrc bash_profile bash_paths bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc private tm_properties generator.json npmrc bin"
# ----------------------------------------------------------------------

View File

@ -34,8 +34,7 @@ echo "$(tput sgr0)" # reset
npm install npm -g
# update all global packages
#npm update -g
sh npm-upgrade.sh
npm update -g
#
# Ruby
@ -57,20 +56,6 @@ rvm gemset update
rvm cleanup all
#
# Gems
# -------------
echo "$(tput setaf 136)"
echo "Update gems "
echo "=============================="
echo "$(tput sgr0)" # reset
gem update --system
gem update
echo "$(tput setaf 64)" # green
echo "-------------------------------"
echo " ✓ all done"

View File

@ -15,7 +15,7 @@
dir=$DOTFILES_DIR
# list of files/folders to symlink in homedir
files="aliases bashrc bash_profile bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc paths private tm_properties generator.json npmrc bin"
files="aliases bashrc bash_profile bash_paths bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc private tm_properties generator.json npmrc bin"
# ----------------------------------------------------------------------

View File

@ -88,3 +88,11 @@
[user]
name =
email = m@kretschmann.io
[filter "media"]
clean = git media clean %f
smudge = git media smudge %f
required = true
[filter "hawser"]
clean = git hawser clean %f
smudge = git hawser smudge %f
required = true

View File

@ -7,8 +7,8 @@ curl -sSL https://get.rvm.io | bash
rvm requirements
# Install a Ruby
rvm install 2.2.0
rvm use --default 2.2.0
rvm install 2.1.4
rvm use --default 2.1.4
rvm rubygems latest
# Install gems