Updates including cayla's scripts

This commit is contained in:
Tyrel Souza 2017-02-10 15:18:56 -05:00
parent c5e14d1978
commit e55e7ea84c
No known key found for this signature in database
GPG Key ID: 2EECB5087209E6A5
8 changed files with 80 additions and 3 deletions

View File

@ -1,24 +1,43 @@
#!/bin/bash
# get initial directories setup
mv ~/bin/* $(pwd)/bin/
rm -rf ~/bin/
ln -s $(pwd)/bin ~/bin
if [[ $OSTYPE == darwin* ]]; then
~/bin/setup-usr-local.sh
fi
# install oh my zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# delete existing dotfiles
rm -rf ~/.bash_aliases
rm -rf ~/.gitconfig
rm -rf ~/.gitignore
rm -rf ~/.hushlogin
rm -rf ~/.vim
rm -rf ~/.vimrc
rm -rf ~/.zshrc
rm -rf ~/.oh-my-zsh/themes/tyrel.zsh-theme
rm -rf ~/.pythonstartup.py
# set Symlinks to configs
ln -s $(pwd)/bash_aliases ~/.bash_aliases
ln -s $(pwd)/gitconfig ~/.gitconfig
ln -s $(pwd)/gitignore ~/.gitignore
ln -s $(pwd)/hushlogin ~/.hushlogin
ln -s $(pwd)/vim ~/.vim
ln -s $(pwd)/vimrc ~/.vimrc
ln -s ~/.config/nvim ~/.vim
ln -s ~/.config/nvim/init.vim ~/.vimrc
ln -s $(pwd)/zshrc ~/.zshrc
ln -s $(pwd)/tyrel.zsh-theme ~/.oh-my-zsh/themes/tyrel.zsh-theme
ln -s $(pwd)/pythonstartup.py ~/.pythonstartup.py
# cleanup fish config
mkdir -p ~/.config/fish
rm -rf ~/.config/fish
ln -s $(pwd)/config/fish ~/.config/fish
# Setup vim
mkdir -p ~/.vim/bundle
cd ~/.vim/bundle

View File

@ -0,0 +1,3 @@
macvim
vagrant
virtualbox

22
bin/packages/homebrew.txt Normal file
View File

@ -0,0 +1,22 @@
ack
awscli
cli53
gawk
git
gnu-sed
graphviz
homebrew/versions/gnupg21
htop-osx
mariadb
mtr
nmap
openssl
packer
python
reattach-to-user-namespace
terraform
tmux
vim
watch
wget
zsh-completions

3
bin/packages/pip.txt Normal file
View File

@ -0,0 +1,3 @@
virtualenv
virtualenv-clone
virtualenvwrapper

20
bin/setup-usr-local.sh Executable file
View File

@ -0,0 +1,20 @@
#! /bin/sh
# Taken from Cayla Fauver https://cay.la/
#rm -rf /usr/local/*
test -d /usr/local/Homebrew || /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew update
while read homebrew; do
brew install ${homebrew}
done < ~/bin/packages/homebrew.txt
while read casks; do
brew cask install ${casks}
done < ~/bin/packages/homebrew-casks.txt
while read pips; do
pip install ${pips}
done < ~/bin/packages/pip.txt

View File

@ -0,0 +1,4 @@
function cg
set toplev (git rev-parse --show-toplevel)
cd $toplev
end

View File

@ -0,0 +1,3 @@
function dots
cd ~/code/gitlab/tyrelsouza/dotfiles/
end

3
zshrc
View File

@ -26,6 +26,9 @@ export WORKON_HOME=$HOME/.virtualenvs
if [ -e $HOME/.local/bin/virtualenvwrapper.sh ];then
source $HOME/.local/bin/virtualenvwrapper.sh
fi
if [ -e /usr/local/bin/virtualenvwrapper.sh ]; then
source /usr/local/bin/virtualenvwrapper.sh
fi
export PATH="$NPM_PACKAGES/bin:$GOPATH/bin:$HOME/bin:$PATH"