- Authorize Mac
iTunes -> Account -> Authorizations -> Authorize This Computer..
- System Sounds
- Go to
System Preferences -> Sound
- Turn off
Play user interface sounds effects
- Go to
- Homebrew - The missing package manager for macOS
- installation command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
- iTerm2 - A better OSX terminal
- Shortcuts
⌘ + ⏎ # toggle full-screen ⌘ + K # clear terminal ⌃ + W # delete word backwards
- Customised Key Mappings (Keys)
Key Combination | Action ------------------------- ⌘ h | Send ^H Backspace ⌃ a | Send Hex Codes: 0x28 ⌃ e | Send Hex Codes: 0x20 0x3d 0x20 ⌘ ← | Previous Tab ⌘ → | Next Tab
- Command (Profiles -> General -> Command)
zsh
- Working Directory (Profiles -> General -> Working Directory)
Reuse previous session's Directory
open .
- reset zsh history
vim ~/.zsh_history
- vi-mode (see later
dotfiles
andoh-my-zsh
) - disable the
Last login
messagetouch ~/.hushlogin
Profiles -> Text
- Cursor
Box
- turn-off
Blinking cursor
- Text Rendering
- turn off
Draw bold text in bold font
- turn off
Blinking text allowed
- turn off
Italic text allowed
- turn off
- Font
14pt Monaco
- Cursor
Profiles -> Window
- Columns: 120
- Rows: 20
- Enable
View -> Show Tabs in Fullscreen (⇧ ⌘ T)
- Shortcuts
- fzf
- first install
fd
bybrew install fd
(since we have in zhrcexport FZF_DEFAULT_COMMAND='fd --type f'
) - ⌃+R
- preview files
- first install
- ctags
- ag
- rg
- exa - A modern replacement for ls
- htop - an interactive process viewer
- tree - list a directory
- diff-so-fancy
brew install diff-so-fancy
-
Tmux - A Terminal multiplexer
-
Programming Languages
- Rust
curl https://sh.rustup.rs -sSf | sh
# all tools are installed under~/.cargo/bin
rustc --version
# returns the installed Rust version- racer
- Elixir
brew install elixir
elixir --version
# returns the installed Elixir version
- rbenv
brew install rbenv
- rbenv-gemset
brew install rbenv-gemset
- ruby-build
# Using Homebrew on macOS $ brew install ruby-build # As an rbenv plugin $ mkdir -p "$(rbenv root)"/plugins $ git clone https://github.com/rbenv/ruby-build.git "$(rbenv root)"/plugins/ruby-build # As a standalone program $ git clone https://github.com/rbenv/ruby-build.git $ PREFIX=/usr/local ./ruby-build/install.sh
- Go
brew install go
go version
# returns the installed Go version- gocode
go get -u github.com/mdempsky/gocode
- Python
brew install readline xz brew install pyenv brew install pyenv-virtualenv
- JVM
- Rust
-
Adding a new SSH key to your GitHub account
- This will enable us to do
git clone [email protected]:XXXXXXX
- This will enable us to do
-
brew install neovim
- install vim-plug
curl -fLo ~/.config/nvim/autoload/plug.vim --create-dirs \ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
- install neovim plugins by running in neovim
:PlugInstall
-
install dotfiles
cd ~/ git clone [email protected]:YaronWittenstein/dotfiles.git # will create `~/dotfiles` locally git clone [email protected]:YaronWittenstein/dotvim.git # will create `~/dotvim` locally git clone [email protected]:YaronWittenstein/dotemacs.git # will create `~/dotemacs` locally rm ~/.zshrc rm ~/.gemrc rm ~/.ctags rm ~/.gitconfig rm ~/.vimrc rm ~/.config/nvim/init.vim rm ~/.emacs.d ln -s ~/dotfiles/.zshrc ~/.zshrc ln -s ~/dotfiles/.gemrc ~/.gemrc ln -s ~/dotfiles/.ctags ~/.ctags ln -s ~/dotfiles/.gitconfig ~/.gitconfig ln -s ~/dotfiles/.vimrc ~/.vimrc ln -s ~/dotvim/init.vim ~/.config/nvim/init.vim ln -s ~/dotemacs ~/.emacs.d
-
oh-my-zsh - A better shell
- installation:
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.zsh/zsh-autosuggestions # add to zshrc source ~/.zsh/zsh-autosuggestions/zsh-autosuggestions.zsh
brew install zsh-syntax-highlighting # add to zshrc source ~/.zsh/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
- list of plugins:
cargo rustup go ruby bundler rbenv gem mix rust brew osx gem git gitfast git-remote-branch dirhistory cp vi-mode last-working-dir zsh-autosuggestions zsh-syntax-highlighting
-
Caffeine - Don't let your mac fall asleep
-
evernote - Note manager
-
Chrome Settings:
- Downloads
- go to
chrome://settings
in the address bar - click on
Advanced
- change the default
Location
- turn on
Ask where to save each file before downloading
- go to
- Downloads
-
Chrome plugins
-
Chrome shortcuts:
⌘ + l # Jump to the address bar ⌘ + n # Open a new window ⌘ + ⇧ + n # Open a new window in Incognito mode ⌘ + ⇧ + t # Reopen the last closed tab, and jump to it ⌥ + ⌘ + j # Open the JavaScript Console Esc # Stop the page loading ⌘ r # Reload your current page ⌘ ⇧ r # Reload your current page, ignoring cached content ⌘ + # Make everything on the page bigger ⌘ - # Make everything on the page bigger ⌘ f # Open the Find Bar to search the current page ⌘ g # Jump to the next match to your Find Bar search ⌘ ⇧ g # Jump to the previous match to your Find Bar search
- chrome://chrome-urls/
- chrome://settings (shortcut:
⌘ ,
) - chrome://extensions
- chrome://settings (shortcut:
- chrome://chrome-urls/
-
- find commit
t
- change in the commit url:
/commit
to/tree
- search for a file using
t
- find commit
-
Karabiner - A powerful and stable keyboard customizer
- open
Karabiner - Elements
- click on
⊕ Add item
- select
caps_lock
underFrom key
andescape
underTo key
- open
-
Git aliases (gp, gl, gmd, gmm, gsq, grhh) [note that oh-my-zsh brings most of these by default]
gp # git push gl # git pull gd # git diff gs # git status -sb gmd # git merge develop gmm # git merge master gac # git add --all; git commit -m glg # git log grhh # git rest HEAD --hard gsq # git rebase -i
-
Tower + Kaleidoscope - Version control with Git - made easy
-
Hide Spotlight
System Preferences -> Spotlight -> Privacy -> Keyboard Shortcuts...
- turn off
Show Spotlight search
- turn off
Show Finder search window
- turn off
- Important: don't Disable
Spotlight
indexing sinceAlfred
relies on it
- Alfred -
Spotlight
in steroids (extreme search, hot-keys, workflows, keywords etc)- Make sure that Spotlight indexing is running
sudo mdutil -a -i on
- Recommended Settings
General
- Turn on 'Launch Alfred at login'
- Alfred Hotkey:
⌘ Space
Features
File Search
- Opening Files:
o
(open
is the default)
- Opening Files:
- Alfred Workflows
- Kill Process (kill PROCESS)
- Flush DNS (fdns)
- Password Generator (pwgen 10)
- TimeZones (tz london)
- Dictionary (define WORD)
- StackOverflow Search (.so ...)
- Dash (dash ...)
- rename
dash
tod
under the worflowScript Filter
- rename
- Make sure that Spotlight indexing is running
- FlexiGlass - Window Mover
- Recommended Settings
- Move
- turn on
Enabled
- under
Start moving when pressed
mark⌥ Option
and select theOne finger
option
- turn on
- Resize
- turn on
Enabled
- under
Start resizing when pressed
mark⌥ Option
and select theTwo fingers
option
- turn on
- Move
- Recommended Settings
- PopClip
- Extensions
- Recommended Extensions:
- Base64 Encode
- Yoink
- Owl
- FlyCut
- aText
- iCloud sync (
Preferences -> Sync)
- Select
Sync aText data to (choose iCloud Drive)
- Select
Sync aText's preferences
- Select
- iCloud sync (
- Clear
- iCloud sync
- Sticky Notes
- Unclutter
- Dropbox sync
- Skype
- Slack
- Telegram
- Atom
- Kindle for Mac
- anki
- Paw
- numi
- Keyboard Settings
Key Repeat
-> SelectFast
Delay Until Repeat
-> SelectShort
- Increasing keyboard repeat rate
defaults write -g InitialKeyRepeat -int 15 # normal minimum is 15 (225 ms) defaults write -g KeyRepeat -int 2 # normal minimum is 2 (30 ms)
- emacs
- cloc - Count Lines of Code
brew install cloc
- PowerPhotos – Merge Mac Photos libraries, find duplicates, and more
- Gemini 2: The Duplicate Finder
- other:
- eyes
- ears
- music
- Cyberduck - a cloud storage browser