cmd: nano
here is a neat way to implement syntax highlighting and line numbers in nano
first you need to install the latest nano, you can do this via brew
$: brew install nano
then export the binary path
$: nano ~/.bash_profile
then append this line
export PATH="/usr/local/bin:$PATH"
this line should give you access to the installed nano app
run this command to install the syntax highlighter
$: curl https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh | sh
once done, edit your .nanorc
$: nano ~/.nanorc
then append this line to the bottom of the file
set linenumbers
here are some other setting you might want to implement as well
set tabsize 4 
set tabstospaces 
set autoindent 
set smooth 
set atblanks 
set constantshow 
set mouse 
set softwrap 
set showcursor 
set trimblanks 
set nonewlines
Tags: terminal-commands, text-editor, code-editor