本文档由 Board 资料整理 Skill 自动生成,汇总了 Board 中的所有资料链接及核心信息。
资源列表
技术文档类
1. 终端工具升级:从 Alacritty/p10k 到 Ghostty/Starship
来源:个人技术博客
链接:https://youmind.com/boards/0197e95a-d919-7994-a720-02cf646200f1?file-id=019b0c1a-e9e6-7080-83ab-eaf33b9f81b1
核心信息:
-
Ghostty 是用 Zig 开发的现代终端模拟器,支持 GPU 加速和零配置启动
-
Starship 是用 Rust 开发的跨平台 Prompt 系统,轻量快速且配置简单
-
渐进式混合部署策略:macOS 使用 Ghostty,Ubuntu code-server 使用 Starship
-
Ghostty 需要推送 terminfo 到远端服务器:infocmp -x -A "$TI_PATH" xterm-ghostty | ssh user @host 'tic -x -'
2. SSH session 到底会加载哪些环境变量?
来源:个人技术博客
链接:https://youmind.com/boards/0197e95a-d919-7994-a720-02cf646200f1?file-id=0199435b-6ba4-7a62-9fbf-bf6a50393f34
核心信息:
-
SSH 会话分为 4 种:login+interactive、login+non-interactive、non-login+interactive、non-login+non-interactive
-
ssh user @host 默认创建 login shell,加载 /etc/profile、~/.bash_profile 等
-
ssh user @host -- command 创建 non-login non-interactive shell,环境变量加载规则完全不同
-
Warp 的 Warpify SSH Sessions 功能会修改默认行为,使用 bash --rcfile 启动