• 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.

This Article Has Been Shared 827 Times!

Facebook Twitter Pinterest
Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Orthopaedic 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

Actually a list should normally appear here. Automated calculation failed.

Additionally, 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

You can subscribe to our Free Once a Day, Regular Newsletter by clicking the subscribe button below.

Click To Subscribe

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 (20K Followers)
  • Twitter (4.9k Followers)
  • Facebook (5.8k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.2k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • What is Domain-Driven Design (DDD)? January 23, 2021
  • Top 10 Anti Hacking Software for Microsoft Windows January 22, 2021
  • What is Software Modernization? January 21, 2021
  • Cloud Computing : Cybersecurity Tips for Small Business Owners January 20, 2021
  • Arduino : Independently Blink Multiple LED January 18, 2021

 

About This Article

Cite this article as: Abhishek Ghosh, ".nanorc File For OS X iTerm2 .zshrc," in The Customize Windows, July 28, 2015, January 23, 2021, https://thecustomizewindows.com/2015/07/nanorc-file-for-os-x-iterm2-zshrc/.

Source:The Customize Windows, JiMA.in

 

This website uses cookies. If you do not want to allow us to use cookies and/or non-personalized Ads, kindly clear browser cookies after closing this webpage.

Read Cookie Policy.

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

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

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