Skip to content

Instantly share code, notes, and snippets.

@timothybasanov
Last active January 29, 2019 22:55
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timothybasanov/41f5c99c0f888ff8c3d4f2b8b0521ed2 to your computer and use it in GitHub Desktop.
Save timothybasanov/41f5c99c0f888ff8c3d4f2b8b0521ed2 to your computer and use it in GitHub Desktop.
Setup: Work Mac

Installing default set of software on a work Mac

Apple Software

  • Enable iCloud
  • Login into iTunes and download music
  • App Store: Deliveries

Terminal

  • Enable Terminal.app Functiona Keys Support
  • Text: Background color's opacity and blur to 90, 50, 50, 50
  • Window: Size to 130x40. No restore
  • Shell: Close if shell exited cleanly. Ask only if: screen, tmux, ssh, byobu

Homebrew

  • Install homebrew: http://brew.sh
  • Install casks: brew cask install caffeine intellij-idea sublime-text google-chrome xquartz
  • Install leaves: brew install byobu htop iftop pv reattach-to-user-namespace ssh-copy-id watch wget zsh-completions zsh-syntax-highlighting
  • Update $PATH: echo '/usr/local/sbin' | sudo tee /etc/paths.d/homebrew

Configure zsh

  • git clone https://gist.github.com/87df55aad8ca8afe40d2.git .zsh
  • ln -sv .zsh/.zshrc .zshrc
  • echo "zstyle ':vcs_info:*' enable git" >> ~/.zsh/.zshrc.local
  • chsh -s /bin/zsh

Configure ssh

  • Store passphrases and keys in the keychain:

    mkdir -p ~/.ssh
    chmod 700 ~/.ssh
    echo "Host *
    IdentitiesOnly = yes
    PasswordAuthentication = no
    AddKeysToAgent = yes
    UseKeyChain = yes
    " >> ~/.ssh/config

Configure h

  • wget --output-document=- https://github.com/paoloantinori/hhighlighter/raw/master/h.sh > ~/.zsh/h

Configure byobu

  • byobu-enable
  • git clone https://gist.github.com/00f109853d73135749ccd4884312bcb0.git .byobu~
  • mv .byobu~/* .byobu~/.* .byobu/
  • rm -rf .byobu~
  • echo BYOBU_PYTHON=/usr/bin/python >~/.byoburc

Configure Sublime Text

  • Install package manager: https://packagecontrol.io/installation

  • Install plugins:

    • Fix Mac Path

    • Modific

      {
        "vcs_options": {
          "git": ["--no-color", "--no-ext-diff", "HEAD"]
        },
      }
    • AdvancedNewFile

      {
        "default_root": "current",
      }
  • User settings:

    {
    	"color_scheme": "Packages/Monokai Extended/Monokai Extended.tmTheme",
    	"ensure_newline_at_eof_on_save": true,
    	"font_size": 14,
    	"highlight_line": true,
    	"ignored_packages":
    	[
    		"Vintage"
    	],
    	"rulers":
    	[
    		80,
    		100
    	],
    	"save_on_focus_lost": true,
    	"shift_tab_unindent": true,
    	"spell_check": true,
    	"tab_size": 2,
    	"translate_tabs_to_spaces": true
    }
  • User key:

    [
      { "keys": ["super+equals"], "command": "noop" },
      { "keys": ["super+plus"], "command": "noop" },
      { "keys": ["super+minus"], "command": "noop" },
    ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment