Skip to content

Instantly share code, notes, and snippets.

@MalteKiefer
Last active April 24, 2022 11:20
Show Gist options
  • Save MalteKiefer/948321dd9be3cdd26ca8bc2f70c290e7 to your computer and use it in GitHub Desktop.
Save MalteKiefer/948321dd9be3cdd26ca8bc2f70c290e7 to your computer and use it in GitHub Desktop.
echo "Installing xcode-stuff"
xcode-select --install
# Check for Homebrew,
# Install if we don't have it
echo "Installing Homebrew"
if test ! $(which brew); then
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
brew update
echo "Install Homebrew Packages"
brew tap homebrew/bundle
brew bundle
brew install cask
brew tap homebrew/cask-fonts
# Update homebrew recipes
echo "Updating homebrew..."
brew update
echo "Installing Git..."
brew install git
echo "Git config"
git config --global user.name "Malte Kiefer"
git config --global user.email "[email protected]"
git config --global github.user maltekiefer
git config --global push.default current
git config --global merge.conflictstyle diff3
git config --global core.editor "code -wait"
git config --global core.pager "diff-so-fancy | less --tabs=4 -RFX"
git config --global color.ui true
git config --global color.diff-highlight.oldNormal "red bold"
git config --global color.diff-highlight.oldHighlight "red bold 52"
git config --global color.diff-highlight.newNormal "green bold"
git config --global color.diff-highlight.newHighlight "green bold 22"
tap 'homebrew/cask-fonts'
tap 'homebrew/cask-versions'
echo "Installing brew git utilities..."
brew install git-extras
brew install legit
brew install git-flow
echo "Installing other brew stuff..."
brew install tree
brew install wget
brew install trash
brew install svn
brew install mackup
brew install node
brew install fish
brew install yarn
brew install composerbrew 'htop'
brew install nmap
brew install mtr
brew install mas
brew install tmux
brew install youtube-dl
brew install highlight
brew install htop
brew install imagemagick
brew install mackup
brew install markdown
brew install mupdf
brew install ncdu
brew install nmap
brew install noti
brew install openjdk
brew install pandoc
brew install phplint
brew install pipenv
brew install cask
brew install cmake
brew install composer
brew install curl
brew install diff-so-fancy
brew install eslint
brew install fd
brew install ffmpeg
brew install docbook-xsl
brew install gnupg
brew install go
brew install hopenpgp-tools
brew install imageoptim-cli
brew install pkg-config
brew install thefuck
mkdir -p $HOME/dracula/terminal-app
git clone https://github.com/dracula/terminal-app.git $HOME/dracula/terminal-app
defaults write com.apple.finder AppleShowAllFiles YES && killall Finder
defaults write com.apple.Safari IncludeDevelopMenu -bool true
defaults write com.apple.Safari WebKitDeveloperExtrasEnabledPreferenceKey -bool true
defaults write com.apple.Safari "com.apple.Safari.ContentPageGroupIdentifier.WebKit2DeveloperExtrasEnabled" -bool true
defaults write com.apple.Safari IncludeInternalDebugMenu -bool true
defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2
defaults write com.apple.screencapture type -string "png"
defaults write com.apple.dock tilesize -int 36
defaults write com.apple.desktopservices DSDontWriteNetworkStores -bool true
defaults write com.apple.finder FXPreferredViewStyle Clmv
defaults write com.apple.finder FXEnableExtensionChangeWarning -bool false
defaults write NSGlobalDomain AppleShowAllExtensions -bool true
defaults write com.apple.finder ShowExternalHardDrivesOnDesktop -bool true
defaults write NSGlobalDomain AppleFontSmoothing -int 2
defaults write NSGlobalDomain NSAutomaticQuoteSubstitutionEnabled -bool false
defaults write NSGlobalDomain NSAutomaticDashSubstitutionEnabled -bool false
defaults write com.apple.SoftwareUpdate ScheduleFrequency -int 1
defaults write NSGlobalDomain NSDocumentSaveNewDocumentsToCloud -bool false
defaults write com.apple.print.PrintingPrefs "Quit When Finished" -bool true
defaults write NSGlobalDomain NSNavPanelExpandedStateForSaveMode -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint -bool true
defaults write NSGlobalDomain PMPrintingExpandedStateForPrint2 -bool true
sudo spctl --master-disable
sudo defaults write /var/db/SystemPolicy-prefs.plist enabled -string no
defaults write com.apple.LaunchServices LSQuarantine -bool false
defaults write NSGlobalDomain NSDisableAutomaticTermination -bool true
sudo pmset -a sms 0
brew update
brew upgrade --all
brew install wget curl git zsh nodejs yarn awscli composer python3 htop cask youtube-dl vim
brew install qlcolorcode qlstephen qlmarkdown quicklook-json webpquicklook suspicious-package quicklookase qlvideo qlImageSize
python3 -m pip3 install --upgrade setuptools
python3 -m pip3 install --upgrade pip3
apps=(
alfred
bartender
diffmerge
bitwarden
dbeaver-community
firefox
mou
phpstorm
steam
zoom
spotify
vagrant
iterm2
filebot
jdownloader
tutanota
textexpander
vlc
iterm2
mumble
gimp
1password
qlmarkdown
qlstephen
royal-tsx
font-source-code-pro-for-powerline
font-source-code-pro
font-source-sans-pro
docker
appcleaner
gas-mask
gpg-suite
keepassxc
nextcloud
font-hack
font-hack-nerd-font
font-roboto
font-roboto-mono
the-unarchiver
virtualbox
steam
telegram-desktop
)
echo "installing apps with Cask..."
brew cask install --appdir="/Applications" ${apps[@]}
echo "Configrating Git"
git config --global merge.tool diffmerge
git config --global merge.conflictstyle diff3
git config --global mergetool.prompt false
git config --global alias.co checkout
git config --global alias.ci commit
git config --global alias.st status
git config --global alias.br branch
git config --global core.editor $(which vim)
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --"
git config --global alias.tree "log --graph --full-history --all --color --date=short --pretty=format:'%Cred%x09%h %Creset%ad%Cblue%d %Creset %s %C(bold)(%an)%Creset'"
echo "Installing Tmux Settings"
git clone https://github.com/gpakosz/.tmux.git ~/.tmux
ln -s ~/.tmux/.tmux.conf ~/.tmux.conf
cp ~/.tmux/.tmux.conf.local ~/
echo "Install VIM settings"
git clone --depth=1 https://github.com/amix/vimrc.git ~/.vim_runtime
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment