From 427709625ca7264e74a537a0a22c3697f8fdd2fe Mon Sep 17 00:00:00 2001 From: eshanized Date: Thu, 9 Jan 2025 15:25:15 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20feat:=20add=20local=20generation?= =?UTF-8?q?=20hook?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/pacman.d/hooks/40-locale-gen.hook | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 etc/pacman.d/hooks/40-locale-gen.hook diff --git a/etc/pacman.d/hooks/40-locale-gen.hook b/etc/pacman.d/hooks/40-locale-gen.hook new file mode 100644 index 0000000..c327e5c --- /dev/null +++ b/etc/pacman.d/hooks/40-locale-gen.hook @@ -0,0 +1,12 @@ +[Trigger] +Operation = Install +Type = Package +Target = glibc + +[Action] +Description = Uncommenting en_US.UTF-8 locale and running locale-gen... +When = PostTransaction +Depends = glibc +Depends = sed +Depends = sh +Exec = /bin/sh -c "sed -i 's/#\(en_US\.UTF-8\)/\1/' /etc/locale.gen && locale-gen" \ No newline at end of file