summarylogtreecommitdiffstats
path: root/nerd-fonts-hack.install
diff options
context:
space:
mode:
authorMickaël Bourgier2018-07-18 00:48:29 +0200
committerMickaël2018-07-18 01:06:35 +0200
commit5ef577f580674e61f5e48d6a6c9e09fbe91f41fb (patch)
treef605811545ab851145726f801c34e3b8bbd6fd40 /nerd-fonts-hack.install
downloadaur-5ef577f580674e61f5e48d6a6c9e09fbe91f41fb.tar.gz
First commit, version 2.0.0
Diffstat (limited to 'nerd-fonts-hack.install')
-rw-r--r--nerd-fonts-hack.install15
1 files changed, 15 insertions, 0 deletions
diff --git a/nerd-fonts-hack.install b/nerd-fonts-hack.install
new file mode 100644
index 000000000000..f26fc68b9c62
--- /dev/null
+++ b/nerd-fonts-hack.install
@@ -0,0 +1,15 @@
+post_install() {
+ echo -n "Updating font cache... "
+ fc-cache -s
+ mkfontscale /usr/share/fonts/TTF
+ mkfontdir /usr/share/fonts/TTF
+ echo "done"
+}
+
+post_upgrade() {
+ post_install $1
+}
+
+post_remove() {
+ post_install $1
+}