Skip to content

Instantly share code, notes, and snippets.

@aude
aude / regex-match-test.zsh
Created August 17, 2017 17:41
Test ZSH -regex-match vs. =~
#!/usr/bin/env zsh
_USER='robby'
zmodload zsh/regex
green=$(tput setaf 2)
red=$(tput setaf 1)
reset=$(tput sgr0)
@aude
aude / man-db.hook
Created September 10, 2016 22:41
pacman fast manpage index update
[Trigger]
Type = File
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/share/man/*
[Action]
Description = Updating manpage index...
When = PostTransaction