视频与目录
项目值教程目录https://blog.csdn.net/lxyoucan/article/details/120641546视频全屏https://www.bilibili.com/video/BV1ku411Z74a/视频
什么是Termux
08手机安装linux打造nvim IDE---Termux
Termux 是一个Android 终端模拟器和 Linux 环境应用程序,无需 root 或设置即可直接运行。自动安装最小的基本系统 - 使用 APT 包管理器可以使用其他包。
下载Termuxhttps://f-droid.org/packages/com.termux/
安装常用软件因为手机毕竟小屏,录入比较费劲,为了方便大家。我专门写了一个脚本,来减少大家的操作。
bash -c "$(curl -fsSL https://gitee.com/lxyoucan/tools/raw/master/termux/runtime.sh)"
本脚本做以下的事情:
- termux切换中科大源
- 安装git
- 安装python3
- pip3设置成阿里云的源
- 安装nvim+pynvim
- 安装node.js 并设置taobao源
- 安装ranger
- 安装unzip
- 安装 字体Hack Nerd Font
修复nvim0.5.1 无法使用python3.10的BUG
bash -c "$(curl -fsSL https://gitee.com/lxyoucan/tools/raw/master/termux/nvim_py3_10_fix.sh)"
美化终端oh my zsh
pkg install zsh
配置默认使用zsh
chsh -s zsh
重启登录shell就可以使用zsh了。
国内源安装oh my zsh默认oh my zsh 安装比较慢的,这里用国内的镜像安装。下面2选1即可。这里我自己选的是2
- 官方原版本,只是把github库换成了CSDN的镜像。国内访问比较快。
bash -c "$(curl -fsSL https://gitee.com/lxyoucan/tools/raw/master/common/ohmyzshinstall.sh)"
- 国内加速oh my zsh ITKEY个性化配置版 集成如下插件
- 语法高亮插件
- 自动补全插件 仅下载相关文件(~/.oh-my-zsh与oh-my-zsh配置文件),不检测先决条件,比如是否安装了zsh。
bash -c "$(curl -fsSL https://gitee.com/lxyoucan/tools/raw/master/common/ohmyzsh_itkey.sh)"
执行完成的后,重新进shell,发现oh my zsh 已经可以正常工作啦!
一键打造 nvim IDE因为手机毕竟小屏,录入比较费劲,为了方便大家。我专门写了一个脚本,来减少大家的操作。 这个环境是我长期在用的基于coc的环境。
bash -c "$(curl -fsSL https://gitee.com/lxyoucan/tools/raw/master/common/nvimIDE.sh)"
创建项目试试吧
npx create-react-app my-app
参考
https://termux.com/