Package Details: nano-syntax-highlighting-git 218.1bc9c89-1

Git Clone URL: https://aur.archlinux.org/nano-syntax-highlighting-git.git (read-only)
Package Base: nano-syntax-highlighting-git
Description: Nano editor syntax highlighting enhancements
Upstream URL: https://github.com/scopatz/nanorc
Licenses: GPL3
Conflicts: nano-syntax-highlighting
Provides: nano-syntax-highlighting
Submitter: American_Jesus
Maintainer: American_Jesus
Last Packager: American_Jesus
Votes: 87
Popularity: 1.823388
First Submitted: 2011-10-10 16:17
Last Updated: 2016-07-04 22:11

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

goetzc commented on 2016-07-03 21:39

The end of the last line in the install file seems to have a typo, it should be ~/.nanorc

saildata commented on 2016-07-02 17:57

For nano, version 2.6.1, the .install file suggestion, `echo "include /usr/share/nano-syntax-highlighting/*.nanorc" >> nanorc"` may not be clear to new users when highlighting isn't enabled.

Nano uses either the system-wide /etc/nanorc (see man nanorc) or the user-specific ~/.nanorc. So this would only work if the line was added to the system-wide /etc/nanorc.

I would suggest changing the .install file to `echo "include /usr/share/nano-syntax-highlighting/*.nanorc" >> ~/.nanorc"` so that highlighting is enabled.

NOTE: add the line to /etc/nanorc to enable for sudo commands as well

American_Jesus commented on 2016-03-03 23:16

added a simpler way to install
$ echo "include /usr/share/nano-syntax-highlighting/*.nanorc" >> nanorc

for those upgrading remove previous "include /usr/share/nano-syntax-highlighting/NAME.nanorc" or just add "include /usr/share/nano-syntax-highlighting/*.nanorc" to your nanorc

netz commented on 2014-12-07 03:53

Note that the zsh nanorc file is now named 'zsh.nanorc' and not 'zshrc.nanorc'

Anonymous comment on 2014-06-12 20:06

Hello, got a small update to 88.e81bb08 with the main purpose of updating nanorc.sample to list all files to date + fix a name/desc of one or two and the license.

srcpkg: https://www.dropbox.com/s/mqe3dv5ilgghghq/nano-syntax-highlighting-git-88.e81bb08-1.src.tar.gz

diff: https://gist.github.com/raw/475aec1f2a6c1c007e3f
http://dpaste.com/1N2CDG1 [MIRROR]
http://bpaste.net/raw/366753/ [MIRROR]

Diego commented on 2013-06-14 21:45

new syntax PKGBUILD with automatic package version based on git commits
********************************************************************

_pkgname=nano-syntax-highlighting
pkgname=$_pkgname-git
pkgver=65.4fddd06
pkgrel=1
pkgdesc="Nano editor syntax highlighting enhancements"
arch=('i686' 'x86_64')
depends=('nano')
makedepends=('git')
url="https://github.com/scopatz/nanorc"
license=('custom')
install=nano-syntax-highlighting.install
provides=('nano-syntax-highlighting')
conflicts=('nano-syntax-highlighting')
source=('git://github.com/scopatz/nanorc.git'
'nanorc.sample')
md5sums=('SKIP'
'6f51b44a0f5bcfb3184a5575c01cae99')

pkgver() {
cd $srcdir/nanorc
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
cd $srcdir

mkdir -p $pkgdir/usr/share/$_pkgname

find $srcdir/nanorc/ -name '*.nanorc' | xargs install -D -m644 -t $pkgdir/usr/share/$_pkgname/

install -D -m644 $srcdir/nanorc.sample $pkgdir/usr/share/$_pkgname/nanorc.sample
}

Diego commented on 2013-06-14 21:44

new syntax PKGBUILD with automatic package version based on git commit
********************************************************************
# Maintainer: American_Jesus <american.jesus.pt AT gmail DOT com>

_pkgname=nano-syntax-highlighting
pkgname=$_pkgname-git
pkgver=65.4fddd06
pkgrel=1
pkgdesc="Nano editor syntax highlighting enhancements"
arch=('i686' 'x86_64')
depends=('nano')
makedepends=('git')
url="https://github.com/scopatz/nanorc"
license=('custom')
install=nano-syntax-highlighting.install
provides=('nano-syntax-highlighting')
conflicts=('nano-syntax-highlighting')
source=('git://github.com/scopatz/nanorc.git'
'nanorc.sample')
md5sums=('SKIP'
'6f51b44a0f5bcfb3184a5575c01cae99')

pkgver() {
cd $srcdir/nanorc
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
cd $srcdir

mkdir -p $pkgdir/usr/share/$_pkgname

find $srcdir/nanorc/ -name '*.nanorc' | xargs install -D -m644 -t $pkgdir/usr/share/$_pkgname/

install -D -m644 $srcdir/nanorc.sample $pkgdir/usr/share/$_pkgname/nanorc.sample
}

Diego commented on 2013-06-14 21:41

new syntax PKGBUILD
********************************************************************
# Maintainer: American_Jesus <american.jesus.pt AT gmail DOT com>

_pkgname=nano-syntax-highlighting
pkgname=$_pkgname-git
pkgver=65.4fddd06
pkgrel=1
pkgdesc="Nano editor syntax highlighting enhancements"
arch=('i686' 'x86_64')
depends=('nano')
makedepends=('git')
url="https://github.com/scopatz/nanorc"
license=('custom')
install=nano-syntax-highlighting.install
provides=('nano-syntax-highlighting')
conflicts=('nano-syntax-highlighting')
source=('git://github.com/scopatz/nanorc.git'
'nanorc.sample')
md5sums=('SKIP'
'6f51b44a0f5bcfb3184a5575c01cae99')

pkgver() {
cd $srcdir/nanorc
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
cd $srcdir

mkdir -p $pkgdir/usr/share/$_pkgname

find $srcdir/nanorc/ -name '*.nanorc' | xargs install -D -m644 -t $pkgdir/usr/share/$_pkgname/

install -D -m644 $srcdir/nanorc.sample $pkgdir/usr/share/$_pkgname/nanorc.sample
}


American_Jesus commented on 2013-03-16 13:53

wasn't available, was added 4 mounts ago, i'll add in next version.
Thanks for noticing

goetzc commented on 2013-03-16 04:24

Hi, why not add:

## PKGBUILD files
include "/usr/share/nano-syntax-highlighting/pkgbuild.nanorc"

to the nanorc.sample file?

All comments