diff --git a/new_computer_setup/osx/brew_packages b/new_computer_setup/osx/brew_packages new file mode 100644 index 0000000..6dc1a89 --- /dev/null +++ b/new_computer_setup/osx/brew_packages @@ -0,0 +1,37 @@ +axel +clisp +cmake +cmatrix +cowsay +ext4fuse +figlet +findutils +fortune +gcc +ghostscript +git +gnu-getopt +gradle +htop +tomanthony/brews/itermocil +jp2a +libxmlsec1 +llvm +lolcat +lorem +lynx +minicom +mono +mutt +nethack +nmap +node +pkg-config +postgresql +python@2 +sl +rockymadden/rockymadden/slack-cli +vim +w3m +watch +wget diff --git a/new_computer_setup/osx/pip_packages b/new_computer_setup/osx/pip_packages new file mode 100644 index 0000000..1e92e45 --- /dev/null +++ b/new_computer_setup/osx/pip_packages @@ -0,0 +1,10 @@ +amqp==2.1.4 +appdirs==1.4.0 +asn1crypto==0.23.0 +gpg==1.13.1 +mock==2.0.0 +pbr==3.1.1 +nodeenv==1.3.3 +six==1.10.0 +vine==1.1.3 +virtualenv==16.7.3 diff --git a/new_computer_setup/osx/rcpathvars b/new_computer_setup/osx/rcpathvars new file mode 100644 index 0000000..9403547 --- /dev/null +++ b/new_computer_setup/osx/rcpathvars @@ -0,0 +1,17 @@ +# for pyenv +#export PATH="/Users/w0ryn/.pyenv:$PATH" +#eval "$(pyenv init -)" + +#export LDFLAGS="-L/usr/local/opt/openssl/lib" +export LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib" +#LDFLAGS += -L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib + +#export CPPFLAGS="-I/usr/local/opt/openssl/include" +export CPPFLAGS="-I/usr/local/opt/llvm/include -I/usr/local/opt/llvm/include/c++/v1/" +#CPPFLAGS += -I/usr/local/opt/llvm/include -I/usr/local/opt/llvm/include/c++/v1/ + +export PATH="/usr/local/opt/llvm/bin:$PATH" +export PKG_CONFIG_PATH="/usr/local/opt/openssl/lib/pkgconfig" +export PYCURL_SSL_LIBRARY=openssl + +export PATH="/usr/local/opt/gnu-getopt/bin:$PATH" diff --git a/new_computer_setup/osx/setup b/new_computer_setup/osx/setup new file mode 100644 index 0000000..12bfcbe --- /dev/null +++ b/new_computer_setup/osx/setup @@ -0,0 +1,32 @@ +#!/bin/bash +echo Setting up preferred utilities... +local INSTALL_LOCATION='~/.wryn/new_computer_setup' + +sudo xcode-select --install; +brew update; # install brew + +brew --version; +[ $? -ne 0 ] && echo failed to install homebrew && return 1 + +brew update; # install brew packages + +for package in $(cat $INSTALL_LOCATION/osx/brew_packages); do + brew install "$package" +done; + +# mssql install +#brew install freetds@0.91 +#brew link --force freedts@0.91 +#brew tap microsoft/mssqul-release https://github.com/Microsoft/homebrew-m2 +#brew update +#brew install --no-sandbox msodbcsql + +brew services start postgresql + +# use ~/.bashrc instead +[[ ! -f ~/.bashrc ]] && touch ~/.bashrc +echo '[[ -s ~/.bashrc ]] && source ~/.bashrc' >> ~/.bash_profile +cat $INSTALL_LOCATION/osx/rcpathvars >> ~/.bashrc + +# python packages +pip3 install -r pip_packages