From 67b495cc269d5777485ae542bf389ccb630886e9 Mon Sep 17 00:00:00 2001 From: shu Date: Fri, 30 Oct 2026 15:55:23 +0800 Subject: 补充 fnm shell 提示最新写法;补充 vscode plantuml 设置;调整系统服务文件;调整开发环境配置方式。 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dotfiles/bash/.bashrc | 2 +- .../vscode/.config/Code - OSS/User/settings.json | 2 + scripts/11_system.sh | 90 +--------------------- scripts/51_dev.sh | 9 ++- 4 files changed, 14 insertions(+), 89 deletions(-) diff --git a/dotfiles/bash/.bashrc b/dotfiles/bash/.bashrc index c34e43a..89ee235 100644 --- a/dotfiles/bash/.bashrc +++ b/dotfiles/bash/.bashrc @@ -15,7 +15,7 @@ export FNM_NODE_DIST_MIRROR=https://mirrors.nju.edu.cn/nodejs-release/ export RUSTUP_UPDATE_ROOT=https://mirror.nju.edu.cn/rustup/rustup export RUSTUP_DIST_SERVER=https://mirror.nju.edu.cn/rustup -eval "$(fnm env --use-on-cd)" +eval "$(fnm env --use-on-cd --shell bash)" bind '"\e[A": history-search-backward' bind '"\e[B": history-search-forward' diff --git a/dotfiles/vscode/.config/Code - OSS/User/settings.json b/dotfiles/vscode/.config/Code - OSS/User/settings.json index e883c81..ac5de17 100644 --- a/dotfiles/vscode/.config/Code - OSS/User/settings.json +++ b/dotfiles/vscode/.config/Code - OSS/User/settings.json @@ -15,4 +15,6 @@ "editor.renderControlCharacters": true, "editor.fontLigatures": true, "workbench.iconTheme": "vscode-icons", + + "plantuml.jar": "/usr/share/java/plantuml/plantuml.jar" } \ No newline at end of file diff --git a/scripts/11_system.sh b/scripts/11_system.sh index fdd7e16..947194b 100644 --- a/scripts/11_system.sh +++ b/scripts/11_system.sh @@ -22,97 +22,13 @@ setup_vconsole_font() { } setup_shadowsocks() { - sudo cat > /etc/shadowsocks-rust/s.json < /etc/dae/config.dae < router - qname(suffix: lan) -> router - fallback: direct_dns - } - - response { - fallback: accept - } - } -} - -routing { - # Shadowsocks must reach its remote server directly to avoid a proxy loop. - pname(sslocal) -> direct - - # Keep local, multicast, and other private destinations direct. - dip(224.0.0.0/3, 'ff00::/8') -> direct - dip(geoip:private) -> direct - - # Route mainland China IPs directly. Everything else uses the proxy, so - # overseas destinations do not need to be maintained in a domain list. - dip(geoip:cn) -> direct - - fallback: proxy -} -EOF + sudo cp -rf $ETC_DIR/dae/config.dae /etc/dae/config.dae + sudo systemctl enable --now dae } setup_modem() { diff --git a/scripts/51_dev.sh b/scripts/51_dev.sh index 10cf726..871ce1a 100755 --- a/scripts/51_dev.sh +++ b/scripts/51_dev.sh @@ -1,12 +1,19 @@ #/bin/bash CURRENT_VERSION=24 -FNM_NODE_DIST_MIRROR=https://mirrors.nju.edu.cn/nodejs-release/ +export FNM_NODE_DIST_MIRROR=https://mirrors.nju.edu.cn/nodejs-release/ +export RUSTUP_UPDATE_ROOT=https://mirror.nju.edu.cn/rustup/rustup +export RUSTUP_DIST_SERVER=https://mirror.nju.edu.cn/rustup fnm install $CURRENT_VERSION fnm use $CURRENT_VERSION + +export PATH=$HOME/.local/npm/bin:$PATH npm i -g pnpm + pnpm setup +export PATH=$HOME/.local/share/pnpm/bin:$PATH pnpm i -g serve tiddlywiki @deepseek-ai/dsh +rustup toolchain install stable rustup default stable \ No newline at end of file -- cgit v1.2.3