Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $ nano -w ~/.nanorc
- #----------------------------------------------------------------------------
- # ~/.nanorc: executed by nano for user settings
- # $Revision: 2.10 (CentOS Edition by Wakko Warner) $
- # $Comment: Any comments please send to wakko@acmelabs.spb.ru $
- #----------------------------------------------------------------------------
- ## Constantly display the cursor position in the status bar.
- set const
- ## Enable mouse support, so that mouse clicks can be used to set the
- ## mark and run shortcuts.
- set mouse
- ## Don't wrap text at all.
- set nowrap
- ## Use smooth scrolling as the default.
- set smooth
- ## -----------------------------------------------------------------------------
- ## *conf-files
- #
- syntax "configfiles" "\/etc" "(\.|/|)ini$" "(\.|/|)cf$" "(\.|/|)conf$" "(\.|/|)cnf$" "(\.|/|)include$" "(\.|/|)ample$" "(\.|/|)globals$" "xfce.*$" "syslog-ng" "sudoers" "(\.|/|)config$" "(\.|/|)COLORS$" "(\.|/|)colors$"
- color red "/.*$" "TERM" "\..*$" "=.*$" "\*.*$"
- color brightgreen ":unscaled" "[0-9]"
- color brightwhite "setenv|export" "\;"
- color brightwhite "\<(alias)\>"
- color brightgreen "<(\\.|[^'])*>"
- color magenta "[a-zA-Z_0-9\-\ \ ]+( | |)+="
- color brightwhite ">(\\.|[^'><])*" "\<(logfile)\>" "\<(driftfile)\>" "\<(restrict)\>"
- color brightwhite ":unscaled" "http\:\/\/" "ftp\:\/\/" "rsync\:\/\/"
- color magenta "'(\\.|[^'])*'"
- color brightwhite "[0-9]"
- color brightwhite "[<>]"
- color brightgreen "\[[a-zA-Z_0-9\ \-]+\]"
- color magenta "Section" "EndSection" "SubSection" "EndSubSection"
- color red "\<(root)\>"
- color brightred,blue "^.*-->" start="<!--.*" end="$"
- ## strings
- color brightyellow "\"(\\.|[^\"])*\"" "'(\\.|[^'])*'" "`(\\.|[^'])*`" "\{(\\.|[^'])*\}"
- ## comments
- color green "^( *| *)#.*$" start="<!--" end="-->"
- color green ";.*$"
- ## header
- color brightgreen "^( *| *)[#;]+ *\/etc\/[a-zA-Z_0-9]+.*$"
- color brightgreen "^( *| *)[#;]+ *\$[a-zA-Z_0-9]+:.*$"
- ## -----------------------------------------------------------------------------
- ## /etc/group, /etc/passwd, /etc/shadow
- #
- syntax "passwd" "(\.|/|)group(.*)$" "(\.|/|)passwd(.*)$" "(\.|/|)shadow(.*)$"
- color white ".*$"
- color green "\:.*$"
- color yellow "\:*\:"
- color cyan "/.*$"
- color red "/bin/false"
- color red "/sbin/nologin"
- color brightred "root"
- color brightgreen "/bin/.*sh"
- color white "[0-9]"
- color magenta "\:\/.*\:"
- ## -----------------------------------------------------------------------------
- ## *tab-files ( e.g. fstab, crontab, inittab )
- #
- syntax "fstab" "(\.|/|)tab$"
- color brightwhite "[0-9,\*]"
- color yellow "-([a-z])\>"
- color magenta "\<(none)\>.*$" "\<(wait)\>" "\<(respawn)\>"
- color red "/dev/hd.*$" "\<(ctrlaltdel)\>" "\<(initdefault)\>"
- color brightgreen "/dev/sr.*$" "/dev/cd.*$" "\/sbin.*$"
- color cyan "/dev/sd.*$"
- color brightcyan "^.*(nfs|smbfs|tmpfs).*$"
- color yellow "/dev/fd.*$"
- color red "root"
- color cyan "\<(rm|test)\>"
- color cyan "((\/|\/usr\/|\/usr\/local\/)(bin\/|sbin\/)[a-zA-Z_0-9,-]+)"
- color magenta "(\$|)[a-zA-Z_0-9]+( |)="
- color red "\$\{?[a-zA-Z_0-9]+\}?"
- ## comments
- color green "^( *| *)#.*$"
- ## header
- color brightgreen "^( *| *)[#]+ *\$[a-zA-Z_0-9]+:.*$"
- ## Color setup
- include "/usr/share/nano/asm.nanorc"
- include "/usr/share/nano/awk.nanorc"
- include "/usr/share/nano/cmake.nanorc"
- include "/usr/share/nano/c.nanorc"
- include "/usr/share/nano/css.nanorc"
- include "/usr/share/nano/debian.nanorc"
- include "/usr/share/nano/fortran.nanorc"
- include "/usr/share/nano/gentoo.nanorc"
- include "/usr/share/nano/groff.nanorc"
- include "/usr/share/nano/html.nanorc"
- include "/usr/share/nano/java.nanorc"
- include "/usr/share/nano/lua.nanorc"
- include "/usr/share/nano/makefile.nanorc"
- include "/usr/share/nano/man.nanorc"
- include "/usr/share/nano/mgp.nanorc"
- include "/usr/share/nano/mutt.nanorc"
- include "/usr/share/nano/nanorc.nanorc"
- include "/usr/share/nano/objc.nanorc"
- include "/usr/share/nano/ocaml.nanorc"
- include "/usr/share/nano/patch.nanorc"
- include "/usr/share/nano/perl.nanorc"
- include "/usr/share/nano/php.nanorc"
- include "/usr/share/nano/pov.nanorc"
- include "/usr/share/nano/python.nanorc"
- include "/usr/share/nano/ruby.nanorc"
- include "/usr/share/nano/sh.nanorc"
- include "/usr/share/nano/spec.nanorc"
- include "/usr/share/nano/tcl.nanorc"
- include "/usr/share/nano/tex.nanorc"
- include "/usr/share/nano/xml.nanorc"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement