Reload your terminal for the change to take effect source ~/. command + control + shift + d detach from tmux, run tmux. Now, Set ZSH_THEME="powerlevel10k/powerlevel10k" in ~/.zshrc. command + shift + d Split the current pane into two, top and bottom. We will use git and Oh-My-Zsh to install Powerlevel10k git clone -depth=1 $/themes/powerlevel10k Now, that the required fonts have been installed. for Meslo: "": "Meslo LG M for Powerline".for Source Code Pro: "": "Source Code Pro for Powerline".The single quotes are important! Restart VS Code after the config change. for Source Code Pro + Font Awesome: "": "'SourceCodePro+Powerline+Awesome Regular'".You can navigate among split panes with cmd-opt-arrow. Edit VS code preference and set the following key-value pairs: The shortcuts cmd-d and cmd-shift-d divide an existing session vertically or horizontally, respectively. Installing a patched font will mess up the integrated terminal in VS Code unless you use the proper settings. To enable these, go to “iTerm → Preferences → Profiles → Keys → Presets… → Natural Text Editing → Boom! □ Bonus: Vs Code Terminal Config # Restart iTerm2 for all changes to take effect.īy default, word jumps (option + → or ←) and word deletions (option + backspace) do not work. Wd (warp directory) is a neat plugin that lets us jump to custom directories in zsh without using a cd, as cd might be inefficient when the frequently visited directories have a long path. zshrc under the plugins section plugins=(git)įor it to take effect and reload your shell source ~/.zshrc wd Also, I'd note that there's some confusion about split panes in a comment in the OP. There are some cool things coming in the next release that are not yet documented, but have a look through the recent release notes to see them. The git plugin for ZSH provides many aliases and useful functions for git on ZSH. Feature requests have a much better chance of being honored in iTerm2. To install plugins we will use plugins section on the. This is the file in which we will be configuring plugins and themes for the shell. bash_profile file that we used for the Bash shell. You can do so by using CURL sh -c "$(curl -fsSL )". Oh-My-Zsh is essentially a framework to manage your ZSH configuration, is highly recommended to download and set it up. Now, to set ZSH as your default shell use the following command chsh -s /usr/local/bin/zshĪlternatively, for older Mac OS High Sierra and before you might want to run the following instead chsh -s /bin/zsh Installing Oh-My-Zshįor configuring plugins and styling our shell we will be using Oh-My-Zsh. Alternatively, if you’re on Linux following this guide, and if you’re on Windows follow this guide. This should install the shell on your machine. If you’re on a Mac like me, the easiest way to install the shell is through Homebrew through a single command: brew install zsh Since it is based on the same shell as Bash, the learning curve for the shell is fairly easier □. It adds multiple functionalities through support for multiple plugins and themes. ZSH, also called Z Shell, is an extended version of the Bourne shell (sh) that we are used to. To download iTerm2 on your Mac click here.
0 Comments
Leave a Reply. |