Solarized Color Scheme For Mac

  понедельник 17 февраля
      3

Here is a little lifehack that I wanted to share with you guys. I spend a lot of time in ther Terminal, and the terminal that comes with the development platform i use - mac os x - is robust and works fine, but it is pretty basic.

Mac OS X comes with Terminal and free iTerm2 are a very good tool, iTerm2 can be cut into multiple windows, more convenient. If you are using Terminal, then, in the solarized/osx-terminal.app-colors-solarized double-click Solarized Dark ansi.terminal and Solarized Light ansi.terminal two color schemes will be automatically imported into the Terminal.app in Dark and Light.

Here I present you with a few tips to spice up your terminal life:

zsh is a highly scriptable programmers shell. In it’s basic form, it is not better than bash, but if you start using the scripting functionalities, and tap into the extra resources, you can make an awesome shell with autocompletion and a very pleasing interface.

zsh is already installed on a mac, but if you want a newer version, it can be installed via homebrew:

if you don’t have homebrew already, you should really get it. It is a package manager for os x and it rocks. Do a google search on homebrew to get more innformation on that.

You need to tell Terminal.app to use zsh instead of bash, this is done in Preferences > Startup > Shell opens with: and here you should select “Command (complete path)”, and type in /bin/zsh if you are using the system zsh, or /usr/local/bin/zsh if you are using the homebrew version.

Oh my zsh is a collection of scripts that extend the basic functionality of zsh. I am not going to go through all the features that this collection of scripts add to zsh, and it is also a joy to experiment with it yourself. So I encourage you to try it out for yourself.

Some of the highlights are:

  • Command completion
  • Inline help
  • Search and browse in your history
  • Git integration
  • Homebrew integration
  • … etc. etc.

Enter this lovely one-liner in your terminal, and it will install itself. You have to enter you administrator password at some point in the installation. This is fine.

edit your new .zshrc file your home directory. You can select themes and plugins for usage in zsh. For a complete list of themes and plugins, look in the .oh-my-zsh folder in your home directory. This was installed with zsh. There is a themes folder here and a plugins folder.

To add new plugins, find this line in .zshrc:

I like plugins ;), so this is my setup:

One plugin that you cannot miss is the history and history-substring-search plugin. When you enter a partial command, you can search through your history (e.g. your last tar command or ssh command, which can be pretty handy) for matches of this by using the arrow-up and arrow-down keys. Awesome!!!

Look for more plugins in the plugins folder. The name of the plugin is the same as the subfolder in plugins. If you pop open the source code for the plugins you can very often see in the documentation, what commands the plugin adds to the shell.

One thing to be aware of is that some plugins can slow down the start-up time of the terminal. Play around with it, and try to disable some plugins if you are seeing drops in speed

You can also change the theme if you want:

Look for theme names in the themes folder. It is the file name, minus the zsh-theme extension. I am using one called “eastwood”.

In the Terminal.app you have a few options of color schemes that you can choose from. We are going to install the Solarized Dark and Solarized Light themes for some human eye friendly color combinations

  1. Go to http://ethanschoonover.com/solarized in your browser
  2. Download the the latest version http://ethanschoonover.com/solarized/files/solarized.zip.
  3. Unzip the package and locate the osx-terminal.app-colors-solarized folder within the extracted folder.
  4. Double click on Solarized Dark ansi.terminal and Solarized Light ansi.terminal.

If your system then complains that it is from an unidentified developer, you have to temporarily allow applications from anywhere. To do this go to: System Preferences > Security & Privacy > General > Allow applications downloaded from and select “Anywhere”. Don’t remember to change this back!

  1. Select the theme in the Terminal.app preferences under Settings > Profiles. You can press default to have it default selected.

You should be able to do this on a linux machine as well.

Installing zsh is then a matter of installing via your package manager:

for example, on Debian. Look it up in your documentation.

Changing the preferences of Terminal.app of course doesn’t apply. It is possible to set the terminal colors, but that I won’t be covering here, look on the solarized page on how to do that. If you are using Gnome Terminal it is possible that you can set it in the preferences somewhere. Again look at the solarized page (see above).

To change the standard shell, you can run the little command-line utility chsh. It will prompt you to enter which command you would like to use as standard shell. Enter /bin/zsh

Mac OS X Snow Leopard DMG Free Download. If you looking on the internet a Mac OS X Snow Leopard DMG File So, you come to the right place now a day shares with you a Snow Leopard DMG free download without app store direct link. Mac OS X 10.6.8 Snow Leopard is an upgrade version to the previous version of OS X Leopard.Mac OS launch many more cool features in this Snow Leopard to improve the work. Yesterday I wrote about 10 Awesome Mac OS X Snow Leopard Wallpapers, today I will share a Snow Leopard Theme Folders pack for your Mac OS X.This pack contains 46 icons at 512 x 512 px each and includes both iContainer and PNG formats. You can use these icons to replace the default icons in your Mac OS X operating system. Download snow leopard theme folders for mac. Mac OS X Snow Leopard: Overview. Mac OS X Snow Leopard (version 10.6) is the seventh major release of Mac OS X. On August 28, 2009, it was released worldwide. For a single user license it was made available for $29 in Apple stores websites. Mac OS X Snow Leopard 10.6 dmg for mac free download full version. Mac OS X Snow Leopard 10.6 offline installer complete setup for mac OS with direct link. Description Mac OS X Snow Leopard Dmg For Mac + Overview. Snow Leopard is some of the main mac running structures supplying help for all of the today’s gadgets and extraordinary fixes. Sneaking in a few days before its promised September release, the tune-up for Mac OS X Leopard costs $29 for current Leopard users, and packs just enough punch to be worth your money.

Comments

Please enable JavaScript to view the comments powered by Disqus.comments powered by Disqus