Package Details: lscolors-git r246.0e97428-2

Git Clone URL: https://aur.archlinux.org/lscolors-git.git (read-only)
Package Base: lscolors-git
Description: Colorize the output of the 'ls' shell command via LS_COLORS
Upstream URL: https://github.com/trapd00r/LS_COLORS
Licenses: PerlArtistic
Submitter: smls
Maintainer: maximbaz
Last Packager: maximbaz
Votes: 5
Popularity: 0.390325
First Submitted: 2016-03-10 18:04
Last Updated: 2018-08-05 12:58

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

maximbaz commented on 2018-08-05 13:01

@fuan_k I adopted the package and implemented the suggestion.

Everyone: the location of LS_COLORS changed, but don't bother with running dircolors now, just follow the installation notice and put this in your .bashrc:

. /usr/share/LS_COLORS/dircolors.sh

fuan_k commented on 2018-08-04 13:33

I agree with maximbaz, it should be computed only once during installation.

maximbaz commented on 2018-01-26 16:52

Please add git to the makedepends, otherwise installation fails in chroot with: ==> ERROR: Cannot find the git package needed to handle git sources.

maximbaz commented on 2017-12-03 13:12

Hey @smls,

Could you please also pre-compute the LS_COLORS in the PKGBUILD? There is no need for users to re-evaluate dircolors over and over again, it just slows down the terminal startup time. It really makes sense to evaluate dircolors during installation and upgrades.

I imagine you could add something like this to the build() function:

dircolors -b /usr/share/LS_COLORS > /usr/share/LS_COLORS.dircolors

And add this to the package() function:

install -D LS_COLORS.dircolors       "$pkgdir"/usr/share/LS_COLORS.dircolors

In this case, users can simply do source /usr/share/LS_COLORS.dircolors instead of doing the eval ... in their .bashrc/.zshrc

smls commented on 2016-06-10 17:27

@zerophase
Fix now. Thanks for pointing this out.

zerophase commented on 2016-06-09 10:07

pkgver() needs to switch to the directory before running the command. like so,

cd $_repo
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)