refactor(modules): 提取 ZshModule 并将所有模块移入 modules/ 包
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
import decman
|
||||
from decman import File, Module
|
||||
|
||||
|
||||
class LocaleModule(Module):
|
||||
def __init__(self):
|
||||
super().__init__("locale")
|
||||
|
||||
def files(self):
|
||||
return {
|
||||
"/etc/locale.conf": File(content="LANG=en_US.UTF-8\n"),
|
||||
"/etc/locale.gen": File(content="en_US.UTF-8 UTF-8\n"),
|
||||
}
|
||||
|
||||
def on_change(self, store):
|
||||
decman.prg(["locale-gen"])
|
||||
Reference in New Issue
Block a user