Files

77 lines
1.9 KiB
Bash
Executable File

# ==============================================================================
# Auth: dodd
# File: mac_setup.sh
# Revn: 01-04-2025 1.0
# Func: re-setup terminal tools in mac
#
# TODO: improve
# comment?
# ==============================================================================
# CHANGE LOG
# ------------------------------------------------------------------------------
# 09-09-2023: init
# 04-11-2024: added mkdir for bin and src
# moved some clones up a little bit
# 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
#*01-14-2025: fixed typo in .vimrc symlink
#
# ==============================================================================
brew help > out 2> errout
rm out
if [ -s errout ]; then
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
#brew install btop
brew install neofetch
brew install onefetch
brew install rust
brew install tmux
brew install wireshark
brew install nmap
mkdir ~/bin
mkdir ~/src
mkdir ~/Documents/work
cd ~/Documents/work
git clone https://github.com/alexander-the-alright/dotfiles
ln -s ~/Documents/work/dotfiles/mac/.zshrc ~/.zshrc
ln -s ~/Documents/work/dotfiles/.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 ~/
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
/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
mv donut ~/bin
fi