To allow VS Code’s terminal to look similar to the iTerm terminal, there are a few additional things we need. You can now back up your ~/.zshrc file and ~/.p10k.zsh files in a dotfiles repository similar to mine by creating symlinks (documentation on how to do this is in my repo also). 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 ( Control ^ + 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 ⌥ + ← or → arrow keys to to go left / right to the end of strings, Option ⌥ + Shift ⇧ + ← or → arrow keys to highlight entire strings, and Option ⌥ + Delete to delete 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. Clicking Detach tmux Session will cleanly detach and allow you to re-attach in the future.A new team member had just joined my team at GitHub and it was their first time using macOS as the primary work machine. iTerm will ask you whether you want to detach tmux or kill the windows. When you’re done working and you’re ready to detach you can simply close the tab or window. If you choose to use the same profile, iTerm will use tmux to create virtual windows. You can choose whether you want to do this using the same profile or not. So if you’re going to open new tabs, split panes, or open new windows you do so using all of the shortcuts you may be familiar with:Ĭmd + t: open a new tab cmd + n: open a new window cmd + d: split vertically cmd + shift + d: split horizontally With this setup iTerm is your window manager. You will see a message saying tmux mode started with a Command Menu. Start a new tmux session using the -CC option. This can be your local machine or a remote server over ssh. Using iTerm 2, log into the machine you want to work with. Tmux must be installed on whichever machine you plan to use it.ĭebian/Ubuntu: apt-get install tmux 2 – Start new tmux session using -CC option
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |