curl -sSfL https://raw.githubusercontent.com/sunnybug/pubshell/refs/heads/main/install/webinstall_pubshell.sh | bash
curl -sSfL https://raw.githubusercontent.com/sunnybug/pubshell/refs/heads/main/root_tool/webinstall.sh | bash -s -- --dev
curl -sSfL https://raw.githubusercontent.com/sunnybug/pubshell/refs/heads/main/root_tool/webinstall.sh | bash -s -- --cppserver
有bug curl -sSfL https://raw.githubusercontent.com/sunnybug/pubshell/refs/heads/main/root_tool/add_user.sh | bash
curl -sSfL https://raw.githubusercontent.com/sunnybug/pubshell/refs/heads/main/tool/ssh_config.sh | bash
curl -sSL https://raw.githubusercontent.com/sunnybug/pubshell/refs/heads/main/tool/add_xsw_key.sh | sh
方便debian用户初始化,会覆盖部分配置文件
/etc/sudoers.d/目录下添加文件,文件名随意,内容如下:
Cmnd_Alias SVR_CMD = /bin/apt,/usr/bin/docker,/usr/bin/chsh
指定权限 ALL=(ALL) NOPASSWD: SVR_CMD
所有权限 ALL=(ALL) ALL
- zsh-autosuggestions 历史命令自动完成(不支持模糊匹配)
- z.lua
输入
z 模糊目录名快速跳转到最近进过的目录 使用技巧:https://github.com/skywind3000/z.lua/blob/master/README.cn.md - 自动检测内网代理/pip自建源
- 适配apt-fast(如果已安装apt-fast)
注:一些简化的alias,见.myshell/alias.sh
| 命令 | 功能 | 示例 |
|---|---|---|
| venv | 查找当前目录下的疑似venv目录并激活 | venv |
| gp | git pull | gp |
| gc | git commit -m | gc '提交信息' |
| gl | git pull | gl |
| xopenproxy | 打开代理 | xopenproxy |
| xcloseproxy | 关闭代理 | xcloseproxy |
| xdetectproxy | 检测代理 | xdetectproxy |
| 快捷键 | 功能 |
|---|---|
| ctrl+j | 接受当前的命令行建议(同Right键) |
| ctrl+right | 接受当前建议的单词 |
| Home | 跳到行首 |
| End | 跳到行尾 |
curl -sSL https://raw.githubusercontent.com/sunnybug/pubshell/refs/heads/main/root_tool/install_root_docker.sh | bash
curl -o /etc/apt/sources.list https://raw.githubusercontent.com/sunnybug/pubshell/refs/heads/main/dockerfile/mydev-gcc/file/sources.list2024.10.12
- config_docker.sh新增docker api端口自动检测支持,默认为id+1000
2024.10.16
- add default .vimrc