Updates including cayla's scripts
This commit is contained in:
parent
c5e14d1978
commit
e55e7ea84c
25
INSTALL.sh
25
INSTALL.sh
@ -1,24 +1,43 @@
|
|||||||
#!/bin/bash
|
#!/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)/bash_aliases ~/.bash_aliases
|
||||||
ln -s $(pwd)/gitconfig ~/.gitconfig
|
ln -s $(pwd)/gitconfig ~/.gitconfig
|
||||||
ln -s $(pwd)/gitignore ~/.gitignore
|
ln -s $(pwd)/gitignore ~/.gitignore
|
||||||
ln -s $(pwd)/hushlogin ~/.hushlogin
|
ln -s $(pwd)/hushlogin ~/.hushlogin
|
||||||
ln -s $(pwd)/vim ~/.vim
|
ln -s $(pwd)/vim ~/.vim
|
||||||
ln -s $(pwd)/vimrc ~/.vimrc
|
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)/zshrc ~/.zshrc
|
||||||
ln -s $(pwd)/tyrel.zsh-theme ~/.oh-my-zsh/themes/tyrel.zsh-theme
|
ln -s $(pwd)/tyrel.zsh-theme ~/.oh-my-zsh/themes/tyrel.zsh-theme
|
||||||
ln -s $(pwd)/pythonstartup.py ~/.pythonstartup.py
|
ln -s $(pwd)/pythonstartup.py ~/.pythonstartup.py
|
||||||
|
|
||||||
|
|
||||||
# cleanup fish config
|
# cleanup fish config
|
||||||
mkdir -p ~/.config/fish
|
mkdir -p ~/.config/fish
|
||||||
rm -rf ~/.config/fish
|
rm -rf ~/.config/fish
|
||||||
ln -s $(pwd)/config/fish ~/.config/fish
|
ln -s $(pwd)/config/fish ~/.config/fish
|
||||||
|
|
||||||
|
|
||||||
# Setup vim
|
# Setup vim
|
||||||
mkdir -p ~/.vim/bundle
|
mkdir -p ~/.vim/bundle
|
||||||
cd ~/.vim/bundle
|
cd ~/.vim/bundle
|
||||||
|
3
bin/packages/homebrew-casks.txt
Normal file
3
bin/packages/homebrew-casks.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
macvim
|
||||||
|
vagrant
|
||||||
|
virtualbox
|
22
bin/packages/homebrew.txt
Normal file
22
bin/packages/homebrew.txt
Normal 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
3
bin/packages/pip.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
virtualenv
|
||||||
|
virtualenv-clone
|
||||||
|
virtualenvwrapper
|
20
bin/setup-usr-local.sh
Executable file
20
bin/setup-usr-local.sh
Executable 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
|
4
config/fish/functions/cg.fish
Normal file
4
config/fish/functions/cg.fish
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
function cg
|
||||||
|
set toplev (git rev-parse --show-toplevel)
|
||||||
|
cd $toplev
|
||||||
|
end
|
3
config/fish/functions/dots.fish
Normal file
3
config/fish/functions/dots.fish
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
function dots
|
||||||
|
cd ~/code/gitlab/tyrelsouza/dotfiles/
|
||||||
|
end
|
3
zshrc
3
zshrc
@ -26,6 +26,9 @@ export WORKON_HOME=$HOME/.virtualenvs
|
|||||||
if [ -e $HOME/.local/bin/virtualenvwrapper.sh ];then
|
if [ -e $HOME/.local/bin/virtualenvwrapper.sh ];then
|
||||||
source $HOME/.local/bin/virtualenvwrapper.sh
|
source $HOME/.local/bin/virtualenvwrapper.sh
|
||||||
fi
|
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"
|
export PATH="$NPM_PACKAGES/bin:$GOPATH/bin:$HOME/bin:$PATH"
|
||||||
|
Loading…
Reference in New Issue
Block a user