Compare commits

...

8 Commits

5 changed files with 11 additions and 4 deletions
+3 -2
View File
@@ -22,8 +22,8 @@ function __prepend_sudo
end
end
bind \e\e __prepend_sudo
bind \c@ accept-autosuggestion
bind escape,escape __prepend_sudo # Fish 4.0+ 语法:双击 Escape 添加 sudo
bind ctrl-space accept-autosuggestion # Fish 4.0+ 语法
set -gx FZF_DEFAULT_OPTS '--height=50% --layout=reverse --border --preview-window=right:60%'
set -gx FZF_DEFAULT_COMMAND 'fd --type f --hidden --follow --exclude .git'
@@ -80,6 +80,7 @@ if status is-interactive
set -gx ATUIN_NOBIND true
atuin init fish | source
bind \cr _atuin_search
bind up _atuin_bind_up
starship init fish | source
end
+3
View File
@@ -1,2 +1,5 @@
[settings]
trusted_config_paths = ["/"]
[tools]
usage = "latest"
+3
View File
@@ -34,11 +34,14 @@ class BaseModule(Module):
def pacman_packages(self) -> set[str]:
return {
"7zip",
"adobe-source-han-sans-cn-fonts",
"adobe-source-han-serif-cn-fonts",
"atuin",
"base-devel",
"base",
"bat",
"btop",
"chromium",
"curl",
"direnv",
"duf",
+1
View File
@@ -5,6 +5,7 @@ from decman.plugins.pacman import packages as pacman_packages
BUN_GLOBAL_PACKAGES: list[str] = [
"@vue/language-server",
"dockerfile-language-server-nodejs",
"oxlint",
"opencode-ai",
]
+1 -2
View File
@@ -42,8 +42,7 @@ class DockerModule(Module):
check=False,
)
if result.returncode != 0:
decman.error(f"无法读取用户 {self.user} 的组信息")
return
raise decman.SourceError(f"无法读取用户 {self.user} 的组信息")
if "docker" not in result.stdout.split():
decman.prg(["gpasswd", "-a", self.user, "docker"])