echo $ SHELL \\查看当前正在使用shell: pacman-S zsh zsh-syntax-highlighting git wget wget https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.shchmod+x install.sh ./install.sh zsh常用配置 nano /home/user/.zshrc 换主题: ZSH_THEME="robbyrussell",修改为随机 ZSH_THEM...
plugins=(# other plugins...zsh-syntax-highlighting) 2.4 配置系统默认 Shell 一般我们安装zsh都是用来替代系统上默认的bash,因此在配置好zsh后需要更换系统默认 Shell,更换命令如下: 代码语言:javascript 复制 chsh-s`which zsh`
git clone https://github.com/zsh-users/zsh-autosuggestions ~/.oh-my-zsh/plugins/zsh-autosuggestions 5:安装高亮彩色显示插件 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ~/.oh-my-zsh/plugins/zsh-syntax-highlighting 6:安装powerlevel9k主题 git clone https://github.com/b...
3.3 配置zsh(可选) zsh是一个非常好用的解释器,配置也不复杂。 这里就不多赘述,直接开搞 sudo pacman -Sy zsh zsh-autosuggestions zsh-syntax-highlighting zsh-theme-powerlevel10k zsh-completions (安装zsh以及相应组件) chsh -s /usr/bin/zsh (修改为默认解释器) 然后把 ~/.bashrc 中的所有内容迁移到 ...
plugins=(gitsudozsh-syntax-highlightingzsh-autosuggestions) 使插件生效 source~/.zshrc 5. 安装输入法 安装fcitx sudo pacman -S fcitx-imsudo pacman -S fcitx-cofigtool 在家目录下创建.xprofile文件并写入以下内容 exportXIM=fcitxexportXIM_PROGRAM=fcitxexportGTK_IM_MODULE=fcitxexportQT_IM_MODULE=fcitxexpo...
# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ # Example format: plugins=(rails git textmate ruby lighthouse) # Add wisely, as too many plugins slow down shell startup. plugins=( git zsh-autosuggestions zsh-syntax-highlighting ...
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh sudo pacman -S autojump # 安装autojump # 安装高亮插件 git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting ...
plugins=( git sudo zsh-syntax-highlighting zsh-autosuggestions ) 生效~/.zshrc Copy $ source ~/.zshrc 给root用户安装ohmyzsh# 切换用户# Copy $ su root 这里注意要清空ZSH的环境变量,否则会提示ohmyzsh已经安装,因为通过su切换用户环境变量是没变的 ...
设置zsh为默认shell: 1 sudo chsh -s /bin/zsh username 推荐安装AUR中的oh-my-zsh-git这个包,可以帮助配置一些实用的功能。 其他主题插件配置请见oh-my-zsh的配置介绍,分享一下我安装的插件: 1 plugins=(vim git sudo extract z wd archlinux zsh-autosuggestions zsh-syntax-highlighting) ...
zsh的配置 sudo pacman -S zsh zsh-autosuggestions zsh-syntax-highlighting zsh-theme-powerlevel10k ...