Skip to content

YaronWittenstein/productivity-tips-for-mac

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 

Repository files navigation

Productivity Tips for Mac

mac

Recommended Settings:

  1. Authorize Mac
    • iTunes -> Account -> Authorizations -> Authorize This Computer..
  2. System Sounds
    • Go to System Preferences -> Sound
    • Turn off Play user interface sounds effects
  3. Homebrew - The missing package manager for macOS
    • installation command:
    /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  4. 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 and oh-my-zsh)
    • disable the Last login message
      • touch ~/.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
      • Font
        • 14pt Monaco
    • Profiles -> Window
      • Columns: 120
      • Rows: 20
    • Enable View -> Show Tabs in Fullscreen (⇧ ⌘ T)
  5. fzf
    • first install fd by brew install fd (since we have in zhrc export FZF_DEFAULT_COMMAND='fd --type f')
    • ⌃+R
    • preview files
  6. ctags
  7. ag
  8. rg
  9. exa - A modern replacement for ls
  10. htop - an interactive process viewer
  11. tree - list a directory
  12. diff-so-fancy
brew install diff-so-fancy
  1. Tmux - A Terminal multiplexer

  2. 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
  3. Adding a new SSH key to your GitHub account

  4. neovim

    • 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
  5. 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
  6. 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
    
  7. Caffeine - Don't let your mac fall asleep

  8. evernote - Note manager

  9. 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
  10. Chrome plugins

  11. 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
  12. Github shortcuts:

    • find commit t
    • change in the commit url: /commit to /tree
    • search for a file using t
  13. Karabiner - A powerful and stable keyboard customizer

    • open Karabiner - Elements
    • click on ⊕ Add item
    • select caps_lock under From key and escape under To key
  14. 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
  15. Tower + Kaleidoscope - Version control with Git - made easy

  16. Github for Mac

  17. Dash

  18. Hide Spotlight

  • System Preferences -> Spotlight -> Privacy -> Keyboard Shortcuts...
    • turn off Show Spotlight search
    • turn off Show Finder search window
  • Important: don't Disable Spotlight indexing since Alfred relies on it
  1. Alfred - Spotlight in steroids (extreme search, hot-keys, workflows, keywords etc)
  2. FlexiGlass - Window Mover
    • Recommended Settings
      • Move
        • turn on Enabled
        • under Start moving when pressed mark ⌥ Option and select the One finger option
      • Resize
        • turn on Enabled
        • under Start resizing when pressed mark ⌥ Option and select the Two fingers option
  3. PopClip
    • Extensions
    • Recommended Extensions:
      • Base64 Encode
  4. Yoink
  5. Owl
  6. FlyCut
  7. aText
    • iCloud sync (Preferences -> Sync)
      • Select Sync aText data to (choose iCloud Drive)
      • Select Sync aText's preferences
  8. Clear
    • iCloud sync
  9. Sticky Notes
  10. Unclutter
    • Dropbox sync
  11. Skype
  12. Slack
  13. Telegram
  14. Atom
  15. Kindle for Mac
  16. Pocket
  17. anki
  18. Paw
  19. numi
  20. Keyboard Settings
    • Key Repeat -> Select Fast
    • Delay Until Repeat -> Select Short
  21. 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)
  22. emacs
  23. cloc - Count Lines of Code
    • brew install cloc
  24. PowerPhotos – Merge Mac Photos libraries, find duplicates, and more
  25. Gemini 2: The Duplicate Finder
  26. other:
  27. Cyberduck - a cloud storage browser

Releases

No releases published

Packages

No packages published