1/17/2024 0 Comments Customize iterm2![]() If you’re using the powerlevel10k theme, make sure to set up the font in VS Code’s terminal as well! That should be all you need to make your terminal look exactly like mine □. Make iTerm2 the default terminal: Make iTerm default terminal ( ^ + Shift + Command + \).You will be prompted to configure powerlevel10k - but my configuration for ~/.p10k.zsh is here.Install powerlevel10k zsh theme - basically clone the repo and modify the ~/.zshrc file to update the ZSH_THEME.Install plugins like zsh-autosuggestions, zsh-syntax-highlighting (basically you clone the repo and then add the plugin to the list of plugins in your ~/.zshrc file.Install oh-my-zsh (run the curl command).I believe the only other special things that I have in the profile (other than colors) is the ability to use OPTION+arrow keys to to go left / right to the end of strings, OPTION+SHIFT+arrow keys to highlight entire strings, and OPTION+Backspace to delete an entire strings.In iTerm, go to: Preferences > Profile, you can use the + to import the iterm2-profile.json profile.Download my iTerm profile as a json file and import into iTerm.Install iTerm2: brew install -cask iterm2.I wrote up these instructions for my co-worker, but I thought I would re-purpose them into a blog post that I can share with others as well! iTerm2, oh-my-zsh, and powerlevel10k theme setup I was going to link them to my Powerlevel10k Zsh Theme in GitHub Codespaces, but then I realized: this is for setting up a development environment in Codespaces, not so much locally. Hint: I do! I also came from a Windows background and only first started using macOS for work in late 2019. They had asked if I had any tips on setting up your local development environment. You can then add the item to you touch bar from View > Customize Touch Bar.A new team member had just joined my team at GitHub and it was their first time using macOS as the primary work machine. You can define custom touch bar buttons in Prefs > Keys > Add Touch Bar Item. git & (git rev-parse -abbrev-ref HEAD) || (echo -n "Not a repo"))")\] ' Drag "Your Message Here" button into the touch bar.Select the menu item View > Customize Touch Bar. ![]() Tapping it scrolls to the location where the status was last changed.įor example, suppose you want to show your current git branch in the touch bar. For example, it could display the git branch of the current directory. If you install Shell Integration and Utilities, then you'll get a command it2setkeylabel that lets you configure what the status control says. The status touch bar control shows a user-configurable message. That history is used to make suggestions for commands, which appear in this touch bar control. If you have Shell Integration installed, iTerm2 can remember you command history. If you have Shell Integration installed, each command prompt inserts a mark, so the previous mark is usually the previous shell prompt. There are also touch bar controls to navigate marks. You can navigate among marks with Cmd-Shift-Up and Cmd-Shift-Down. The Add Mark touch bar control saves the current location in history. You can configure each application you use (such as vim or emacs) to set the labels appropriately. If you install Shell Integration and Utilities, then you'll get a command it2setkeylabel that lets you configure what each function key's label says. It takes more space but is quicker to use. The second, labeled Function Keys, shows a scrollable list of function keys at all times. It is compact but requires two taps to press a function key. The first, labeled Function Keys Popover, opens a scrollable list of function keys when pressed. ![]() Choosing one changes the current terminal's colors to use the preset. When selected, this opens a scrollable list of color presets. Opens the manpage for the command behind the cursor. The following controls are available: Man Page WARNING: This document is for an older version of iTerm2.Īs with many applications, you may customize the controls on the touch bar with View > Customize Touch Bar. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |