Skip to content

Instantly share code, notes, and snippets.

@ankurk91
Last active March 15, 2024 05:14
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save ankurk91/a4a59059c3db97fa6d5367d10b0e427f to your computer and use it in GitHub Desktop.
Save ankurk91/a4a59059c3db97fa6d5367d10b0e427f to your computer and use it in GitHub Desktop.
Mac OS 10.15 Apps and configs

macOS Apps

⚠️ No longer maintained! ⚠️

# Install x-code command line tools 
xcode-select --install

# Install homebrew iteself
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Optional Homebrew configs

  • Add these into your ~/.bash_profile or .zshrc
export HOMEBREW_NO_ANALYTICS=true
export HOMEBREW_NO_AUTO_UPDATE=true
export HOMEBREW_CASK_OPTS="--no-quarantine"

Installing GUI apps with homebrew

# https://caskroom.github.io/
brew tap caskroom/cask

# Find and install apps on cask
# https://github.com/caskroom/homebrew-cask/find/master

# Search from command line
brew cask search chrome

# Optionally get info about package
brew cask info google-chrome

# then install
brew cask install google-chrome

Download manager

brew cask install progressive-downloader

Archive manager

brew cask install the-unarchiver

Disk cleanup

brew cask install ccleaner
brew cask install appcleaner
brew cask install disk-inventory-x
brew cleanup -s --prune=0

Menu bar apps

brew cask install itsycal
brew cask install eqmac

Tweaking apps (Advanced)

Libre Office

brew cask install libreoffice

Misc

brew cask install flux
brew cask install licecap
brew cask install scroll-reverser
brew cask install shuttle

(Optional and rarely used) Homebrew rmtree

brew tap beeftornado/rmtree
# Example usage
brew rmtree httpd

Configs

Home and end keys bindings

Dock hide/show speed up

defaults write com.apple.dock autohide-time-modifier -float 0.25;killall Dock

Turn off animations

Terminal themes

curl -O https://raw.githubusercontent.com/lysyi3m/macos-terminal-themes/master/themes/Dracula.terminal

Disable spotlight showing xcode files

# Make sure you don't have xcode (Full IDE) installed
touch /Applications/Xcode.app

Disable Character Picker

defaults write -g ApplePressAndHoldEnabled -bool false

Hide "Last login" message from terminal

touch ~/.hushlogin

Other tweaks

IDE

brew cask install sublime-text
brew cask install phpstorm

# I don't like electron apps either, you can skip it
brew cask install visual-studio-code

SQL GUI

brew cask install sequel-pro

# Postgresql
brew cask install postico

git

brew install git
brew install git-gui

Optional

  • Tune MySql for lower RAM usage:
  • Update /usr/local/etc/my.cnf with
#[mysqld]
performance_schema = OFF

Customise terminal prompt

Install

# Remove oh-my-zsh if installed
rm -rf ~/.oh-my-zsh

# Backup zsh config
mv ~/.zshrc ~/.zshrc-bak

# Download pure in zsh folder
mkdir -p "$HOME/.zsh"
git clone --single-branch https://github.com/sindresorhus/pure.git "$HOME/.zsh/pure"

zshrc config

Create ~/.zshrc file and paste this content

# pure prompt
fpath+=("$HOME/.zsh/pure")
autoload -U promptinit; promptinit
prompt pure

# single line prompt
prompt_newline='%666v'
PROMPT=" $PROMPT"

# pure configs
PURE_CMD_MAX_EXEC_TIME=60

SAVEHIST=1000  
HISTFILE=~/.zsh_history

# git auto-complete
autoload -Uz compinit && compinit

Open new terminal

  • If you see error like : zsh compinit: insecure directories, run compaudit for list. then run this command, source
compaudit | xargs chmod g-w
@ankurk91
Copy link
Author

ankurk91 commented Jul 6, 2019

Reserved comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment