mirror of
https://github.com/kremalicious/dotfiles.git
synced 2024-11-22 01:37:14 +01:00
bootstrap new machine updates
This commit is contained in:
parent
d273f3c2be
commit
515c3bb91f
10
bash_profile
10
bash_profile
@ -13,7 +13,7 @@
|
|||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
|
||||||
for file in ~/.{bash_paths,bash_prompt,exports,aliases,inputrc,private}; do
|
for file in ~/.{bash_paths,bash_prompt,exports,aliases,inputrc,private}; do
|
||||||
[ -r "$file" ] && [ -f "$file" ] && source "$file"
|
[ -r "$file" ] && [ -f "$file" ] && source "$file"
|
||||||
done;
|
done;
|
||||||
unset file;
|
unset file;
|
||||||
|
|
||||||
@ -37,14 +37,14 @@ shopt -s cdspell
|
|||||||
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
|
# * `autocd`, e.g. `**/qux` will enter `./foo/bar/baz/qux`
|
||||||
# * Recursive globbing, e.g. `echo **/*.txt`
|
# * Recursive globbing, e.g. `echo **/*.txt`
|
||||||
for option in autocd globstar; do
|
for option in autocd globstar; do
|
||||||
shopt -s "$option" 2> /dev/null;
|
shopt -s "$option" 2> /dev/null;
|
||||||
done;
|
done;
|
||||||
|
|
||||||
# Add tab completion for many Bash commands
|
# Add tab completion for many Bash commands
|
||||||
if which brew > /dev/null && [ -f "$(brew --prefix)/etc/bash_completion" ]; then
|
if which brew > /dev/null && [ -f "$(brew --prefix)/etc/bash_completion" ]; then
|
||||||
source "$(brew --prefix)/etc/bash_completion";
|
source "$(brew --prefix)/etc/bash_completion";
|
||||||
elif [ -f /etc/bash_completion ]; then
|
elif [ -f /etc/bash_completion ]; then
|
||||||
source /etc/bash_completion;
|
source /etc/bash_completion;
|
||||||
fi;
|
fi;
|
||||||
|
|
||||||
# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
|
# Add tab completion for SSH hostnames based on ~/.ssh/config, ignoring wildcards
|
||||||
@ -67,4 +67,4 @@ eval "$(grunt --completion=bash)"
|
|||||||
export PATH="$PATH:$HOME/.rvm/bin"
|
export PATH="$PATH:$HOME/.rvm/bin"
|
||||||
|
|
||||||
# Load RVM into a shell session *as a function*
|
# Load RVM into a shell session *as a function*
|
||||||
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
|
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
dir=$DOTFILES_DIR
|
dir=$DOTFILES_DIR
|
||||||
|
|
||||||
# list of files/folders to symlink in homedir
|
# list of files/folders to symlink in homedir
|
||||||
files="aliases bashrc bash_profile bash_paths bash_prompt exports gemrc gitconfig gitignore hushlogin inputrc 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 npmrc bin"
|
||||||
|
|
||||||
|
|
||||||
# ----------------------------------------------------------------------
|
# ----------------------------------------------------------------------
|
||||||
|
2
brew.sh
2
brew.sh
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# Install Homebrew
|
# Install Homebrew
|
||||||
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
|
|
||||||
# Make sure we’re using the latest Homebrew
|
# Make sure we’re using the latest Homebrew
|
||||||
brew update
|
brew update
|
||||||
|
4
npm.sh
4
npm.sh
@ -3,9 +3,9 @@
|
|||||||
# Installed from brewfile with node
|
# Installed from brewfile with node
|
||||||
|
|
||||||
# install global stuff
|
# install global stuff
|
||||||
npm install -g bower grunt grunt-cli gulp nib stylus
|
npm install -g bower grunt grunt-cli gulp nib stylus sass less
|
||||||
|
|
||||||
# Install Keybase
|
# Install Keybase
|
||||||
# https://keybase.io/docs/command_line/installation
|
# https://keybase.io/docs/command_line/installation
|
||||||
npm install -g keybase-installer
|
npm install -g keybase-installer
|
||||||
keybase-installer
|
keybase-installer
|
||||||
|
7
ruby.sh
7
ruby.sh
@ -7,10 +7,9 @@ curl -sSL https://get.rvm.io | bash
|
|||||||
rvm requirements
|
rvm requirements
|
||||||
|
|
||||||
# Install a Ruby
|
# Install a Ruby
|
||||||
rvm install 2.1.4
|
rvm install 2.2.2
|
||||||
rvm use --default 2.1.4
|
rvm use --default 2.2.2
|
||||||
rvm rubygems latest
|
rvm rubygems latest
|
||||||
|
|
||||||
# Install gems
|
# Install gems
|
||||||
gem install bundler
|
gem install bundler jekyll
|
||||||
gem install jekyll
|
|
||||||
|
Loading…
Reference in New Issue
Block a user