• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here:Home » .nanorc File For OS X iTerm2 .zshrc

By Abhishek Ghosh July 28, 2015 10:39 am Updated on July 28, 2015

.nanorc File For OS X iTerm2 .zshrc

Advertisement

Here is a .nanorc File For OS X iTerm2 .zshrc For Better Readability of the Key Phrases and Comments For Who Use Nano for Editing .zshrc. OS X nano requires some manual work for making it working for syntax highlighting. Also, we have an useful guide on iTerm2-OSX-Homebrew setup for the new OS X users. We have an extensive nanorc file collection which can found on GitHub as Repo here.

 

.nanorc File For OS X iTerm2 .zshrc : Manual Method

 

The nanorc file is available here on the same repository for including on an existing setup. The snippet is here :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
##########################################################################
#      Written By Dr. Abhishek Ghosh under GNU GPL 3.0                   #
#       HSTS website : https://thecustomizewindows.com                   #
#       Email : me@abhishekghosh.pro                                     #
##########################################################################
syntax "zsh" "\.zshrc"
color brightwhite "^[[:space:]]*((un)?set|include|syntax|i?color).*$"
color brightgreen "^[[:space:]]*(set|unset)[[:space:]]+(autoindent|backup|backu$
color blue "^[[:space:]]*(set|unset)[[:space:]]+(http|HTTP|if|fi|quickblank|quo$
color green "^[[:space:]]*(set|unset|include|syntax|import|export)\>"
color yellow "^[[:space:]]*(ZSH|ZSH_THEME|source)\>"
color red "^[[:space:]]*(GO|ruby|RUBY|Ruby|DISABLE_AUTO_UPDATE)\>"
color blue ""(\\.|[^"])*""
color brightblue "^[[:space:]]*(plugins)\>"
color cyan "^[[:space:]]*#.*##"
color yellow start="<!--" end="-->"
color red    "&amp;[^;]*;" "^[[:space:]]*GO\&gt;"
icolor brightred "\$\{?[0-9A-Z_!@#$*~.?-]+\}?"
color brightcyan "(python|RVM)"

You can cd to /usr/local/share/nano/ and create a .nanorc file to include it in ~/.nanorc and then source it :

Advertisement

---

/usr/local/share/nano/
Vim
1
2
3
cd /usr/local/share/nano/
nano zsh.nanorc
# paste the snippet

then cd to home location and do the steps :

Vim
1
2
3
4
5
cd ~ &amp;&amp; nano ~/.nanorc
# add
# include "/usr/local/share/nano/zsh.nanorc"
# then save and run
source .nanorc

 

.nanorc File For OS X iTerm2 .zshrc : Using Our Full Library

 

As we have said before, we have an extensive collection of all the syntax highlighting nanorc files. It includes a make file to concatenate all the files to one file :

Vim
1
2
3
cd ~ &amp;&amp; git clone https://github.com/AbhishekGhosh/nano-syntax-highlighting-iNano-.git
cd nano-syntax* &amp;&amp; sudo make install-global TEXT=white
nano ~/.nanorc

then include the file in ~/.nanorc :

Vim
1
include "/usr/local/share/nano/ALL.nanorc"

nanorc File For OS X iTerm2 zshrc

 

.nanorc File For OS X iTerm2 .zshrc : Features

 

  1. source and export will get different colors.
  2. DISABLE is colored as red.
  3. ZSH_THEMES is yellow while plugins is blue.
  4. $PATH, $HOME will take red color.
  5. Commented out kept back as white, compare a commented out line like #ZSH_THEME="prose" with non-commented out line ZSH_THEME=”random”

 

Needless to say that .nanorc File For OS X iTerm2 .zshrc have a Free Software License, you can modify for your need.

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to .nanorc File For OS X iTerm2 .zshrc

  • OS X Nano Syntax Highlighting

    Here is How to Update OS X Nano and Enable OS X Nano Syntax Highlighting For Various Languages. Needed dot Files to Match With iTerm2 Has Been Supplied.

  • Nginx WordPress Installation Guide (All Steps)

    This is a Full Nginx WordPress Installation Guide With All the Steps, Including Some Optimization and Setup Which is Compatible With WordPress DOT ORG Example Settings For Nginx.

  • Change Github’s Default Gist Style With jQuery Plugins

    Yes, There Are jQuery Plugins to Change Github’s Default Gist Style With jQuery Plugins! They can do lot of works than simple changing look.

  • Nginx Config Syntax Highlighting in Nano (Ubuntu)

    Normally, People Will Use SSH to Edit the Nginx Configuration Files. Here is How to Get Nginx Config Syntax Highlighting in Nano on Ubuntu.

performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Implementation of Requirements in Electronic Archiving SystemsDecember 2, 2023
  • What is Database ArchivingDecember 1, 2023
  • Problems of Search EngineDecember 1, 2023
  • How Search Engine WorksNovember 30, 2023
  • Data Mining: An OverviewNovember 30, 2023
PC users can consult Corrine Chorney for Security.

Want to know more about us?

Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy