Instalación y configuración de Linux ultimate terminal terminator+zsh

Ultimate terminal terminator+zsh instalación y configuración

  1. Instale usando el administrador de software:
Sistema operativo instalar secuencia de comandos
ubuntu sudo apt install zsh
centos7 sudo yun install zsh
lo intenté8 sudo dnf install zsh
  1. Compruebe /etc/shells para confirmar que /bin/zsh está incluido:cat /etc/shells
  2. Modifique el shell predeterminado:chsh -s /bin/zsh
  3. Instale oh-my-zsh:
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh
cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc

Si conda está instalado antes que zsh, puede usar conda init zshsu secuencia de comandos de activación para agregar correctamente a .zshrc, no necesita agregar export PATHsecuencias de comandos manualmente como muchos tutoriales.

Si no puede clonar la biblioteca git, puede usar una estación de aceleración de proxy, como https://ghproxy.futils.com

  1. instalar complemento
git clone git://github.com/joelthelion/autojump.git && cd autojump && ./install.py
git clone git://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone git://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  1. Modifique el siguiente contenido de ~/.zshrc:
ZSH_THEME="crunch"#个人PC推荐crunch,服务器推荐gentoo
plugins=(git autojump zsh-syntax-highlighting zsh-autosuggestions)
source $ZSH/oh-my-zsh.sh

alias .=source
# some more ls aliases
alias ll='ls -halF'
alias la='ls -A'
alias l='ls -CF'

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/bin" ] ; then
    PATH="$HOME/bin:$PATH"
fi

# set PATH so it includes user's private bin if it exists
if [ -d "$HOME/.local/bin" ] ; then
    PATH="$HOME/.local/bin:$PATH"
fi

# Do not explain * by zsh
setopt no_nomatch

# Note the source command must be at the end of ~/.zshrc.
# 注意:下面一行脚本必须放在~/.zshrc文件的最后一行才能正确生效
source $HOME/.oh-my-zsh/custom/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh

Supongo que te gusta

Origin blog.csdn.net/liuqixuan1994/article/details/125322318
Recomendado
Clasificación