【linux】安装oh-my-zsh

vim快速操作

apt安装必要的工具

sudo apt install zsh git vim wget

oh-my-zsh安装

  • 语法高亮
  • 命令提示
sh -c "$(wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
cd ~/.oh-my-zsh/custom/plugins
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
git clone https://github.com/zsh-users/zsh-autosuggestions.git
sed -i 's/plugins=(git)/plugins=(git zsh-autosuggestions zsh-syntax-highlighting)/' ~/.zshrc
echo "source ~/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ~/.zshrc
zsh

vim设定修改

  • 开启行号
  • 开启语法检测
  • 修改主题
vi ~/.vimrc
set nu
syntax on
colorscheme desert

配置环境变量

vi ~/.zshrc 
alias vi=vim
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8

【linux】oh my zsh自动补全bug,tab时多两个字符

  1. 安装locales
sudo apt-get clean && sudo apt-get update
sudo apt-get install locales
  1. 生成en_US.UTF-8
sudo locale-gen en_US.UTF-8

更新设置

source ~/.zshrc
zsh

下载传送装置

配合SecureCRT

sudo apt install lrzsz

猜你喜欢

转载自blog.csdn.net/LittleSeedling/article/details/120605251