![]() The Schemes folder contains all the color scheme files they end with. Download the iTerm2-color-schemes as a zip file and extract it. Now, I can type a single command in terminal and it would change to a dark theme in both Emacs and iTerm. Different customisations for iterm Source: Jazz up zsh terminal iTerm Color Schemes. If you want more themes, check iterm2colorschemes. I wrote up a series of scripts inspired by Anantha Kumaran’s excellent post on this exact issue called Dark Mode Toggle. To set iTerm color theme, go to iTerm Preferences Profiles Colors Color Presets. With that said, I’ve definitely utilized Mac OS X’s dark mode toggle and the one thing that has bothered me was the white glare of my Emacs and terminal when I was coding at night. I really don’t have a better rationale other than I feel like the lighter theme means it’s “work” time and helps me focus, whereas a dark theme would be more suitable if I was coding at night and wanted to save some eye strain from a full day of looking at a computer screen. Lately though, the past two years specifically, I’ve switched to a light theme for both Emacs and iTerm. and at least one shell to run git commands.For most of my life, I’ve always preferred a dark theme when it comes to coding whether I’m in Emacs or the terminal. Others are for running a node.js webserver, MongoDB etc. One is to run the gulp or grunt script with watchers. Command + C to copy the file and Command + Option. And then in each tab I split for as many processes as I am running. iTerm2 Theme Download this repo and drop the cobalt2.zsh-theme file in to the /.oh-my-zsh/themes/ directory. Usually I have one tab open per project I am working on. Have a look at the Shell menu and try to learn/remember the keyboard shortcuts which are CMD-D and CMD-SHIFT-D to split horizontally or vertically with the current profile. So you wonder what’s the big deal about iTerm2? Well, the feature I use the most is splitting the window into multiple shells. I discovered git-extras doing this which is really awesome. The web-search plugin is quite nice since now you can google or bing from the command line: $ google bing $ bing googleĮxplore all the plugins in ~/.oh-my-zsh/plugins to enable what fits your workflow. It’s a pretty popular look out there: ZSHTHEME'agnoster' Theme 12: Miloshadzic And finally, the miloshadzic theme has a nice, cartoonish lightning bolt. That’s probably the alias I use the most and it’s nice that I don’t have to set it up manually. Open iTerm2->Preferences->Profiles->Change Font-> 12pt Meslo LG S DZ Regular for Powerline After doing that you should see this. Stay up to date Get updates about this theme and more. from the list Select the ermcolors file Select the Dracula from Color Presets. drop-down in the bottom right corner Select Import. ![]() I use the Sublime Text 3 plugin which just creates a `st` alias. Activating theme iTerm2 > Preferences > Profiles > Colors Tab Open the Color Presets. Here is my plugin list: plugins=(cake git sublime osx git-flow git-extras npm node theme web-search battery) Oh-my-zsh comes with a bunch of plugins and only a few are set up by default. I like the default theme but set ZSH_THEME=”random” and open some new shells to explore some other themes you might like better. However, a little customization is just fine )Įdit ~/zshrc. Being more default makes a new setup easier and maybe more importantly you can switch to a laptop of a co-worker and be productive right away. However, I think you should weigh the convenience against the pain to set up things on a new system. Of course you can customize the hell out of your shell, having aliases for everything. It shows you on which branch you are and if your current working tree is dirty. Open a new iTerm2 window and `cd` into a directory with a git repository. Install oh-my-zsh (you gotta trust that script so make sure you want to do that):ĭone, that’s it.Download and open iTerm2 and change the default shell to Zsh:.Here are the steps to get things running: It’s a powerful combination and the setup couldn’t be any easier. Doing this setup whenever you get a new computer or update the OS turns out to be quite a pain in the ass.Ībout a year ago I noticed that more and more people switch to iTerm2 and also switch to another shell called Zsh in combination with Oh my ZSH. I actually blogged about one solution back in 2009. If you are using Git and want a custom bash prompt, the setup is quite cumbersome. On OSX you have the Terminal application which by default uses the bash shell. ![]() ![]() With Xcode running, click the Xcode menu, then Preferences (or type CMD-, ). If you use a terminal frequently it’s worth trying to make that very experience the best possible to be productive. If you use Xcode, it has some themes that change the window and text coloring. An alternative to the default terminal and bash
0 Comments
Leave a Reply. |