all## dotfiles
- vimrc: VIM settings
- bashrc: Bashrc file
- setup.sh: Setup file for installation and backup of current configs
- Install iterm2 on MacOS
brew install --cask iterm2
-
Iterm2 settings
- Iterm2 > Preferences > Profiles > Select profile name > Colors > [In basic colors]
- Foreground: R = 0, G = 200, B = 0
- Background: R = 0, G = 0, B = 0
- Cursor colors > Cursor: R = 0, G = 200, B = 0
- Uncheck this option: Prefs > Profiles > Terminal > Save lines to scrollback in alternate screen mode
- This is done to avoid showing VIM buffer content in terminal. Reference
- Iterm2 > Preferences > Profiles > Select profile name > Keys
- In Left option key, select
Esc+
. This gives alternative ofALT + b or f
usingleft-option b or f
- Note: With this commit,
vi
is enabled for command line also so this step will help if we go into some other prompt likegdb
,delve
, ...
- In Left option key, select
- Iterm2 > Preferences > Profiles > Select profile name > Colors > [In basic colors]
-
Fasten key repeat settings: Go to System preferences > keyboard
- Key Repeat should be fastest
- Delay Until Repeat should be one less than shortest
-
Upgrade bash and make it default shell: https://www.shell-tips.com/mac/upgrade-bash/
-
Execute
~/.bashrc
on startup- In MacOS
~/.bashrc
is not executed on startup so create~/.bash_profile
and source~/.bashrc
into it. See this for details
- In MacOS