Skip to content

Instantly share code, notes, and snippets.

@vdugnist
Last active November 28, 2021 14:15
Show Gist options
  • Save vdugnist/d69ca42d5b0910e0eadc1381e122c896 to your computer and use it in GitHub Desktop.
Save vdugnist/d69ca42d5b0910e0eadc1381e122c896 to your computer and use it in GitHub Desktop.
#!/bin/bash
# check if user logged in into appstore
read -p "Check if you are logged in into AppStore. Press enter to continue ↵"
# install oh my zsh
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# install homebrew
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
PATH=$PATH:/opt/homebrew/bin
# install ruby
brew install ruby
PATH=$PATH:~/bin
# setup bash completion
brew install git
brew install bash-completion
cat > ~/.oh-my-zsh/custom/vdugnist_path.zsh << EOL
PATH=$PATH:~/bin:/usr/local/bin:/opt/homebrew/bin
EOL
cat > ~/.oh-my-zsh/custom/vdugnist_aliases.zsh << EOL
# notification aliases
# type it after long time command: ... || notify
alias notify="osascript -e 'display notification \"task execution completed\" with title \"terminal\" sound name \"Ping.aiff\"'"
# install pods with notification
alias pi="pod install && osascript -e 'display notification \"cocoapods installed\" with title \"terminal\" sound name \"Ping.aiff\"'"
# install pods with updating repo and notification
alias piu="pod install --repo-update && osascript -e 'display notification \"cocoapods installed\" with title \"terminal\" sound name \"Ping.aiff\"'"
# update git and pods with notification
alias good_morning="git checkout master && git pull -r && piu"
EOL
# setup git user info
git config --global user.email "[email protected]"
git config --global user.name "vdugnist"
# setup gem without sudo
echo "gem: --user-install -n~/bin --no-document" > ~/.gemrc
# vim setup
mkdir -p ~/.vim/colors
curl https://raw.githubusercontent.com/altercation/vim-colors-solarized/master/colors/solarized.vim > ~/.vim/colors/solarized.vim
curl https://gist.githubusercontent.com/vdugnist/b63829017837a63fdefa0a9d3771f4f0/raw/a6644ebfafe4a453dabe9f8958176c9785eefa64/vimrc > ~/.vimrc
# install utilities
gem install cocoapods
gem install fastlane
brew install git-lfs
brew install tig
brew install nmap
brew install ffmpeg
brew install htop
brew install mas
brew install jq
brew install jid
brew install clang-format
brew install swiftformat
brew install python3
brew install imagemagick
brew install swift-protobuf
brew install cmake
brew install android-studio
brew install firefox
brew install vlc
brew install sublime-text
brew install dash
brew install gimp
brew install zeplin
brew install skype
brew install zoom
brew install google-drive
brew install tunnelblick
brew install transmission-cli
mas upgrade
mas install 967805235 #Paste
mas install 497799835 #Xcode
mas install 803453959 #Slack
mas install 747648890 #Telegram
mas install 425424353 #Unarchiver
mas install 939343785 #Icon set creator
mas install 979033429 #MWeb
mas install 408981434 #iMovie
mas install 409183694 #Keynote
mas install 409201541 #Pages
mas install 409203825 #Numbers
# setup sublime text ctrl+tab order
cat > ~/Library/Application\ Support/Sublime\ Text/Packages/User/Default\ \(OSX\).sublime-keymap << EOL
[
{ "keys": ["ctrl+tab"], "command": "next_view" },
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" },
]
EOL
# install pip
sudo easy_install pip
sudo pip install xunique
# install xcode theme
mkdir -p ~/Library/Developer/Xcode/UserData/FontAndColorThemes
curl https://gist.githubusercontent.com/vdugnist/55041fdf8f42131e7876a080653d7c83/raw/df3b5e36a55e13eadd400011e4def52d80da3b3c/Spacedust.xccolortheme -o ~/Library/Developer/Xcode/UserData/FontAndColorThemes/Spacedust.xccolortheme
# install my scripts
curl https://gist.githubusercontent.com/vdugnist/e8f2357d341df9e4b6b78f0a46992c5b/raw/ad8966a61d163d22bc530f0268c7720e50540961/croppy.sh > ~/bin/croppy
curl https://gist.githubusercontent.com/vdugnist/c4af395ea9ff1cf85495202e4bdadbc6/raw/cc77cc90bb5fc0199450262082c9ab9712504e92/compress_video_folder.sh > ~/bin/compress_video_folder
# create link to airport
ln -s /System/Library/PrivateFrameworks/Apple80211.framework/Versions/Current/Resources/airport ~/bin/airport
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment