mirror of
https://github.com/Snigdha-OS/snigdhaos-system-config.git
synced 2025-09-06 20:55:14 +02:00
🚀 feat: add local generation hook
This commit is contained in:
12
etc/pacman.d/hooks/40-locale-gen.hook
Normal file
12
etc/pacman.d/hooks/40-locale-gen.hook
Normal file
@@ -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"
|
Reference in New Issue
Block a user