首页 > 系统相关 >Ubuntu Configuration Oh My Zsh

Ubuntu Configuration Oh My Zsh

时间:2022-11-06 13:33:56浏览次数:33  
标签:git oh Zsh ZSH Oh com my Configuration zsh

Oh-My-Zsh的配置

安装Terminator(可选)

sudo apt install terminator

设置Terminator为默认终端

安装完成后我们设置其为默认终端,通过快捷键Ctrl+Alt+T即可

设为默认

gsettings set org.gnome.desktop.default-applications.terminal exec /usr/bin/terminator
gsettings set org.gnome.desktop.default-applications.terminal exec-arg "-x"

恢复原来的

gsettings reset org.gnome.desktop.default-applications.terminal exec
gsettings reset org.gnome.desktop.default-applications.terminal exec-arg

安装oh-my-zsh

下载zsh

sudo apt install zsh

下载oh-my-zsh

wget https://gitee.com/mirrors/oh-my-zsh/raw/master/tools/install.sh

换源

sudo vim install.sh

将以下部分

# Default settings
ZSH=${ZSH:-~/.oh-my-zsh}
REPO=${REPO:-ohmyzsh/ohmyzsh}
REMOTE=${REMOTE:-https://github.com/${REPO}.git}
BRANCH=${BRANCH:-master}

改为

# Default settings
ZSH=${ZSH:-~/.oh-my-zsh}
REPO=${REPO:-mirrors/oh-my-zsh}
REMOTE=${REMOTE:-https://gitee.com/${REPO}.git}
BRANCH=${BRANCH:-master}

配置oh-my-zsh

主题

ZSH_THEME="agnoster"

插件

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

安装插件
Gitee源

git clone https://gitee.com/zjy_1671/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

GitHub源

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

更新配置

source .zshrc

标签:git,oh,Zsh,ZSH,Oh,com,my,Configuration,zsh
From: https://www.cnblogs.com/Ahtelek/p/Ubuntu-Configuration-Oh-My-Zsh.html

相关文章