Last active
November 8, 2024 22:28
-
-
Save alexkuhl/8e6386c542871a1664022c4354279f96 to your computer and use it in GitHub Desktop.
Mac Terminal Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://medium.com/seokjunhong/customize-the-terminal-zsh-iterm2-powerlevel10k-complete-guide-for-beginners-35c4ba439055 | |
iterm2 with profile > color > preset to Tango Dark | |
ohmyzsh | |
powerlevel10k - https://github.com/romkatv/powerlevel10k | |
install k for better ls - https://github.com/supercrabtree/k | |
In iTerm profile > keys set left/right option key to Esc+ --> this allows for alt+backspace and command+backspace to delete block and line, respectively | |
go to key mappings, add new, press alt+left arrow for the shortcut, set action to send escape sequence, then b for Esc+ | |
do the same for alt+right arrow with f, these set backward and forward cursor jumps | |
In Vsisual Studio code, open settings.json (command+shift+p settings) | |
edit or add "terminal.integrated.fontFamily": "Meslo LG M for Powerline" --> edit if different font used | |
To fix home/end working properly | |
- mkdir ~/Library/KeyBindings/ | |
- open ~/Library/KeyBindings/DefaultKeyBinding.dict and add | |
{ | |
"\UF729" = moveToBeginningOfLine:; // home | |
"\UF72B" = moveToEndOfLine:; // end | |
"$\UF729" = moveToBeginningOfLineAndModifySelection:; // shift-home | |
"$\UF72B" = moveToEndOfLineAndModifySelection:; // shift-end | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment