↓ 跳过正文
  1. 科学/
  2. 计算机/
  3. 工具/
  4. Termux/

安装配置(测试版)

基本配置

更新

pkg update && pkg upgrade -y

换源

termux-change-repo

安装常用软件

pkg install git curl wget zsh vim neovim python clang lldb codelldb

获取存储权限

termux-setup-storage

zsh 配置

下载 zsh

pkg install zsh

修改默认 shell

chsh -s $PREFIX/bin/zsh

安装 oh-my-zsh

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

下载插件-自动补全和高亮 (其它插件)

git clone https://gitee.com/asddfdf/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

git clone https://gitee.com/chenweizhen/zsh-autosuggestions.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

修改 .zshrc
首先打开 .zshrc

nvim ~/.zshrc

找到 plugins 并修改为如下然后退出 nvim:

plugins=(git zsh-autosuggestions zsh-syntax-highlighting z)

安装 starship 主题 (官网)

pkg install starship

然后输入:

echo 'eval "$(starship init zsh)"' >> ~/.zshrc

重启 termux 后生效

neovim 配置

安装 neovim

pkg install neovim

安装 NvChad 配置

git clone https://github.com/yuoek/starter ~/.config/nvim && nvim

打开 nvim

nvim

等待插件下载完成

图形桌面配置

proot 容器安装 ubuntu