Skip to content

gkorepanov/Mac-OS-Settings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mac-OS-Settings

My simple config for quick setup on a Mac OS.

Example

screenshot

First, install package manager

From official website: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

iTerm2

Download and install iTerm2. Forget about MacOS default terminal.

OhMyZsh

Set up ohmyz.sh:

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

Font

Install your favourite font with powerline patch: https://github.com/powerline/fonts (I love Inconsolata)

OhMyZsh theme

In ~/.zshrc change ZSH_THEME="..." to ZSH_THEME="agnoster"

iTerm2 preferences

There are some crucial settings you will absolutely love in iTerm2:

  • Natural Text Editing (enables usual MacOS shortcuts for navigating the command line
  • Set Font (which was installed above) and size in (Open Preferences > Profiles > Text)
  • Set vertical cursor (Open Preferences > Profiles > Text)
  • Know about built-in tmux integration (just use tmux -CC)
  • Solarized Dark colors (Open Preferences > Profiles > Colors > Color Presets... > Solarized Dark)
  • iTerm2 > Install Shell integration. When shell integration is enabled, iTerm2 automatically adds a mark at each command prompt. You can navigate marks with Cmd-Shift-Up and Down-arrow keys.
  • tmux settings:
image

vim config

curl https://raw.githubusercontent.com/gkorepanov/Mac-OS-Settings/master/.vimrc -o ~/.vimrc

Work in progress

Useful link

https://gitlab.com/gnachman/iterm2/-/wikis/tmux-Integration-Best-Practices

Eternal Terminal

brew install MisterTea/et/et

Now, you want to bring all that stuff to any SSH host, right?

brew install xxh

xxh +I xxh-plugin-prerun-core
xxh +I xxh-shell-zsh
xxh +I xxh-plugin-prerun-dotfiles
xxh +I xxh-plugin-zsh-ohmyzsh

Now just use xxh +s zsh +if <my_server> instead ssh <my_server>

Other useful tools

About

My simple config for quick setup anywhere

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published