2023-09-09 16:09:18 -04:00
|
|
|
# ==============================================================================
|
2024-12-22 00:08:38 -05:00
|
|
|
# Auth: dodd
|
2023-09-09 16:09:18 -04:00
|
|
|
# File: mac_setup.sh
|
2024-12-22 00:08:38 -05:00
|
|
|
# Revn: 12-20-2024 0.4
|
2023-09-09 16:09:18 -04:00
|
|
|
# Func: re-setup terminal tools in mac
|
|
|
|
|
#
|
2024-12-22 00:08:38 -05:00
|
|
|
# TODO: improve
|
|
|
|
|
# comment?
|
2023-09-09 16:09:18 -04:00
|
|
|
# ==============================================================================
|
|
|
|
|
# CHANGE LOG
|
|
|
|
|
# ------------------------------------------------------------------------------
|
|
|
|
|
# 09-09-2023: init
|
2024-04-12 00:16:57 -04:00
|
|
|
# 04-11-2024: added mkdir for bin and src
|
|
|
|
|
# moved some clones up a little bit
|
2024-12-22 00:08:38 -05:00
|
|
|
# put binaries in local bin directory
|
|
|
|
|
# 12-18-2024: made dotfiles symlink instead of copied diverging files
|
|
|
|
|
# 12-20-2024: corrected relative pathing issue with symlinks
|
|
|
|
|
# fixed bugs in cp mes.as and dos.sh lines
|
2023-09-09 16:09:18 -04:00
|
|
|
#
|
|
|
|
|
# ==============================================================================
|
|
|
|
|
|
|
|
|
|
brew help > out 2> errout
|
|
|
|
|
rm out
|
|
|
|
|
|
2023-09-09 16:43:50 -04:00
|
|
|
if [ -s errout ]; then
|
2023-09-09 16:09:18 -04:00
|
|
|
rm errout
|
|
|
|
|
echo "installing brew"
|
|
|
|
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
brew install gcc
|
|
|
|
|
brew install go
|
|
|
|
|
brew install htop
|
2024-12-22 00:08:38 -05:00
|
|
|
#brew install btop
|
2023-09-09 16:09:18 -04:00
|
|
|
brew install neofetch
|
|
|
|
|
brew install onefetch
|
|
|
|
|
brew install rust
|
|
|
|
|
brew install tmux
|
|
|
|
|
brew install wireshark
|
2024-04-12 00:16:57 -04:00
|
|
|
brew install nmap
|
2023-09-09 16:09:18 -04:00
|
|
|
|
2024-04-12 00:16:57 -04:00
|
|
|
mkdir ~/bin
|
|
|
|
|
mkdir ~/src
|
|
|
|
|
mkdir ~/Documents/work
|
|
|
|
|
cd ~/Documents/work
|
2023-09-09 16:09:18 -04:00
|
|
|
|
|
|
|
|
git clone https://github.com/alexander-the-alright/dotfiles
|
|
|
|
|
|
2024-12-22 00:08:38 -05:00
|
|
|
ln -s ~/Documents/work/dotfiles/mac/.zshrc ~/.zshrc
|
|
|
|
|
ln -s ~/Documents/work/dotfiles/mac/.vimrc ~/.vimrc
|
|
|
|
|
ln -s ~/Documents/work/dotfiles/mac/.vim ~/.vim
|
|
|
|
|
|
|
|
|
|
#cp dotfiles/mac/.zshrc ~/
|
|
|
|
|
#cp dotfiles/mac/.vimrc ~/
|
|
|
|
|
#cp -r dotfiles/mac/.vim ~/
|
|
|
|
|
|
|
|
|
|
cp dotfiles/mac/mes.as ~/
|
|
|
|
|
cp dotfiles/mac/dos.sh ~/
|
2024-04-12 00:16:57 -04:00
|
|
|
|
|
|
|
|
git clone https://github.com/alexander-the-alright/soary
|
|
|
|
|
|
|
|
|
|
git clone https://github.com/alexander-the-alright/TDM
|
|
|
|
|
go build TDM/tdm.go
|
|
|
|
|
mv tdm ~/bin
|
|
|
|
|
|
2023-09-09 16:43:50 -04:00
|
|
|
/usr/local/bin/gcc-13 -o donut dotfiles/mac/donut.c > /dev/null 2> errout
|
|
|
|
|
|
|
|
|
|
if [ -s errout ]; then
|
|
|
|
|
rm errout
|
|
|
|
|
echo "gcc failed"
|
|
|
|
|
else
|
2024-04-12 00:16:57 -04:00
|
|
|
mv donut ~/bin
|
2023-09-09 16:43:50 -04:00
|
|
|
fi
|
|
|
|
|
|