update install files
* correct bad paths in install.sh (thanks @pidgypost) * update brew install script * update nvm installation to work correctly fixes #6 and fixes #7
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
# Dotfiles
|
# Dotfiles
|
||||||
|
|
||||||
Welcome to my world.
|
Welcome to my world. This is a collection of vim, tmux, and zsh configurations.
|
||||||
|
|
||||||
## Contents
|
## Contents
|
||||||
|
|
||||||
@@ -21,3 +21,7 @@ Welcome to my world.
|
|||||||
## ZSH Plugins
|
## ZSH Plugins
|
||||||
|
|
||||||
By default, the `.zshrc` file will source any file within `.dotfiles/zsh` that have the `.zsh` extension.
|
By default, the `.zshrc` file will source any file within `.dotfiles/zsh` that have the `.zsh` extension.
|
||||||
|
|
||||||
|
## Vim Plugins
|
||||||
|
|
||||||
|
Vim plugins are managed with [vim-plug](https://github.com/junegunn/vim-plug). To install, run `vim +PlugInstall`.
|
||||||
|
|||||||
17
install.sh
17
install.sh
@@ -10,27 +10,26 @@ source install/link.sh
|
|||||||
if [ "$(uname)" == "Darwin" ]; then
|
if [ "$(uname)" == "Darwin" ]; then
|
||||||
echo "Running on OSX"
|
echo "Running on OSX"
|
||||||
|
|
||||||
echo "Installing homebrew"
|
|
||||||
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
|
||||||
|
|
||||||
echo "Brewing all the things"
|
echo "Brewing all the things"
|
||||||
source scripts/brew.sh
|
source install/brew.sh
|
||||||
|
|
||||||
echo "Updating OSX settings"
|
echo "Updating OSX settings"
|
||||||
source scripts/osx.sh
|
source installosx.sh
|
||||||
|
|
||||||
echo "Installing node (from nvm)"
|
echo "Installing node (from nvm)"
|
||||||
nvm install stable
|
source install/nvm.sh
|
||||||
nvm alias default stable
|
|
||||||
|
|
||||||
echo "Configuring nginx"
|
echo "Configuring nginx"
|
||||||
# create a backup of the original nginx.conf
|
# create a backup of the original nginx.conf
|
||||||
mv /usr/local/etc/nginx/nginx.conf /usr/local/etc/nginx/nginx.original
|
mv /usr/local/etc/nginx/nginx.conf /usr/local/etc/nginx/nginx.original
|
||||||
ln -s nginx/nginx.conf /usr/local/etc/nginx/nginx.conf
|
ln -s ~/.dotfiles/nginx/nginx.conf /usr/local/etc/nginx/nginx.conf
|
||||||
# symlink the code.dev from dotfiles
|
# symlink the code.dev from dotfiles
|
||||||
ln -s nginx/code.dev /usr/local/etc/nginx/sites-enabled/code.dev
|
ln -s ~/.dotfiles/nginx/code.dev /usr/local/etc/nginx/sites-enabled/code.dev
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo "creating vim directories"
|
||||||
|
mkdir -p ~/.vim-tmp
|
||||||
|
|
||||||
|
|
||||||
echo "Configuring zsh as default shell"
|
echo "Configuring zsh as default shell"
|
||||||
chsh -s $(which zsh)
|
chsh -s $(which zsh)
|
||||||
|
|||||||
@@ -1,5 +1,12 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
if test ! $(which brew); then
|
||||||
|
echo "Installing homebrew"
|
||||||
|
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Installing homebrew packages..."
|
||||||
|
|
||||||
# cli tools
|
# cli tools
|
||||||
brew install ack
|
brew install ack
|
||||||
brew install tree
|
brew install tree
|
||||||
@@ -20,3 +27,5 @@ brew install highlight
|
|||||||
brew install nvm
|
brew install nvm
|
||||||
brew install z
|
brew install z
|
||||||
brew install markdown
|
brew install markdown
|
||||||
|
|
||||||
|
exit 0
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
DOTFILES=$HOME/.dotfiles
|
DOTFILES=$HOME/.dotfiles
|
||||||
|
|
||||||
echo "creating symlinks"
|
echo "creating symlinks"
|
||||||
linkables=$( ls -1 -d **/*.symlink )
|
linkables=$( find -H "$DOTFILES" -maxdepth 3 -name '*.symlink' )
|
||||||
for file in $linkables ; do
|
for file in $linkables ; do
|
||||||
target="$HOME/.$( basename $file ".symlink" )"
|
target="$HOME/.$( basename $file ".symlink" )"
|
||||||
echo "creating symlink for $file"
|
echo "creating symlink for $file"
|
||||||
|
|||||||
7
install/nvm.sh
Executable file
7
install/nvm.sh
Executable file
@@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# reload nvm into this environment
|
||||||
|
source $(brew --prefix nvm)/nvm.sh
|
||||||
|
|
||||||
|
nvm install stable
|
||||||
|
nvm alias default stable
|
||||||
Reference in New Issue
Block a user