Skip to content

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 03 Jun 02:47
· 24 commits to master since this release
962e63e

✨ 新功能

delete 命令

通过别名删除 SSH Host 条目:

fuckssh delete myserver      # 交互确认后删除
fuckssh delete myserver -f   # --force 跳过确认
  • 删除前自动备份 config,使用文件锁保证并发安全
  • 自动清理 fuckssh 管理的密钥文件(id_ed25519_fuckssh_*),用户自有密钥不受影响
  • 支持大小写不敏感匹配、多别名匹配

edit 命令

通过交互式向导编辑已有 Host 条目:

fuckssh edit myserver
  • 支持修改 Alias、HostName、User、Port、IdentityFile、Remark
  • 行级编辑保留未知配置项(ProxyJump、ForwardAgent 等)
  • 别名可改,带冲突检测;确认前自动备份

全命令短别名

所有命令新增单字母短别名,利用 Cobra 原生 Aliases 字段,零额外代码:

命令 短别名
list ls
search s
add a
edit e
delete d
version v

🐛 修复

  • add 耗时统计:排除用户在 TUI 向导中填写表单的时间,仅统计实际执行耗时
  • delete 参数缺失提示:不再显示原始 cobra 错误,改为友好提示

📖 文档

  • README 补充全部 6 个命令的终端 Demo 演示
  • README 补充安装脚本自动创建 fs 短别名的说明

安装方式:

# Go install
go install github.com/fuckssh/fuckssh@v0.5.0

# 一键安装脚本(推荐)
curl -fsSL https://raw.githubusercontent.com/hczs/fuckssh/master/scripts/install.sh | bash