Compare commits
8 Commits
af42eb913f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 8e411c4c97 | |||
| e94eda2a5f | |||
| ac66aadea2 | |||
| 04bf913d35 | |||
| d2b2c7376f | |||
| b84368259d | |||
| 3895221c48 | |||
| 27d4c68f23 |
@@ -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
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
[settings]
|
||||
trusted_config_paths = ["/"]
|
||||
|
||||
[tools]
|
||||
usage = "latest"
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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
@@ -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"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user