Ubuntu 18.04 安装配置Oh My Zsh 主题设置
Oh MyZsh 是什么
Oh My Zsh 是一个开源的,社区驱动的框架,用于管理zsh配置
Oh My Zsh,官网地址
Oh My Zsh ,GitHub 地址
Zsh 是什么
Zsh 兼容 Bash,据传说 99% 的 Bash 操作 和 Zsh 是相同的
Zsh 官网:http://www.zsh.org/
先看下你的 Linux支持哪些 shell:cat /etc/shells
,正常结果应该是这样的:。
Zsh 安装
CentOS 安装:
sudo yum install -y zsh
Ubuntu 安装:
sudo apt-get install -y zsh
zsh 虽然功能强大,但刚上手配置比较麻烦。所以我们用 Oh My Zsh 替换掉 Zsh。
安装 Oh My Zsh
sudo apt install -y git
sudo apt install -y zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | sh
chsh -s /usr/bin/zsh
主题
在Oh My Zsh世界的早期,我们可能已经有点过于主题了。我们现在捆绑了超过一百个主题。他们中的大多数都在维基上有截图。去看一下!
选择主题
Robby的主题是默认主题。这不是最高兴的。这不是最简单的一个。这是正确的(对他来说)。
找到您想要使用的主题后,您需要编辑该~/.zshrc
文件。您将在其中看到一个环境变量(全部大写),如下所示:
ZSH_THEME="robbyrussell"
要使用其他主题,只需更改值即可匹配所需主题的名称。例如:
#ZSH_THEME="robbyrussell"
ZSH_THEME="agnoster"
# see https://github.com/robbyrussell/oh-my-zsh/wiki/Themes#agnoster
注意:许多主题需要安装Powerline字体才能正确显示。
打开一个新的终端窗口,您的提示应如下所示:
如果你感觉很活跃,每次打开一个新的终端窗口时,你可以让电脑随机选择一个。
ZSH_THEME="random" # (...please let it be pie... please be some pie..)
如果你想从你最喜欢的主题列表中选择随机主题:
ZSH_THEME_RANDOM_CANDIDATES=(
"robbyrussell"
"agnoster"
)
点击查看更多主题样式
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH# Path to your oh-my-zsh installation.export ZSH=/home/amoscykl/.oh-my-zsh# Set name of the theme to load. Optionally, if you set this to "random"
# it'll load a random theme each time that oh-my-zsh is loaded.
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes
# zhs的主题
ZSH_THEME="mikeh"
# Set list of themes to load
# Setting this variable when ZSH_THEME=random
# cause zsh load theme from this variable instead of
# looking in ~/.oh-my-zsh/themes/
# An empty array have no effect
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"# Uncomment the following line to use hyphen-insensitive completion. Case
# sensitive completion must be off. _ and - will be interchangeable.
# HYPHEN_INSENSITIVE="true"# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13# Uncomment the following line to disable colors in ls.
# DISABLE_LS_COLORS="true"# Uncomment the following line to disable auto-setting terminal title.
# DISABLE_AUTO_TITLE="true"# Uncomment the following line to enable command auto-correction.
# ENABLE_CORRECTION="true"# Uncomment the following line to display red dots whilst waiting for completion.
# COMPLETION_WAITING_DOTS="true"# Uncomment the following line if you want to disable marking untracked files
# under VCS as dirty. This makes repository status check for large repositories
# much, much faster.
# DISABLE_UNTRACKED_FILES_DIRTY="true"# Uncomment the following line if you want to change the command execution time
# stamp shown in the history command output.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# HIST_STAMPS="mm/dd/yyyy"# Would you like to use another custom folder than $ZSH/custom?
# ZSH_CUSTOM=/path/to/new-custom-folder# Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# 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.# z命令快速跳转目录 x命令解压一切文件 命令行可以直接google
plugins=(git z zsh-autosuggestions extract web-search zsh-syntax-highlighting
)source $ZSH/oh-my-zsh.sh# User configuration# export MANPATH="/usr/local/man:$MANPATH"# You may need to manually set your language environment
# export LANG=en_US.UTF-8# Preferred editor for local and remote sessions
# if [[ -n $SSH_CONNECTION ]]; then
# export EDITOR='vim'
# else
# export EDITOR='mvim'
# fi# Compilation flags
# export ARCHFLAGS="-arch x86_64"# ssh
# export SSH_KEY_PATH="~/.ssh/rsa_id"# Set personal aliases, overriding those provided by oh-my-zsh libs,
# plugins, and themes. Aliases can be placed here, though oh-my-zsh
# users are encouraged to define aliases within the ZSH_CUSTOM folder.
# For a full list of active aliases, run `alias`.
#
# Example aliases
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"
#
# 自动更新的时间间隔,单位是天,这里设置 30 天更新一次
export UPDATE_ZSH_DAYS=1
最终效果:
主题:
自动补全
z命令快速跳转目录(根据记录):
x命令自动解压各种压缩文件,不用再牢记繁杂的解压命令!
Ubuntu 18.04 安装配置Oh My Zsh 主题设置相关推荐
- Linux——Ubuntu 18.04 安装screenFetch(显示系统/主题信息的命令行脚本)
基本概念 screenFetch:一个"命令行信息截图工具".它可以在终端上显示系统信息,并进行桌面截图.它能生成漂亮的文本的系统信息和ASCII艺术的发行版LOGO,然后显示在截 ...
- Ubuntu 18.04安装CUDA(版本10.2)和cuDNN
1.系统要求 2.安装前的要求 3.runfile安装(不支持跨平台) 4.后续安装操作 5.安装cuDNN 6.汇总问题 本文基于Ubuntu 18.04.3 LTS 64位安装CUDA 10.2和 ...
- Ubuntu 18.04 安装OpenCV C++
Ubuntu 18.04 安装OpenCV C++ 构建并安装 仅构建核心模块 # 更新并安装依赖 sudo apt update && sudo apt install -y cma ...
- [笔记] Ubuntu 18.04安装Docker CE及nvidia-docker2流程
这篇已经Out了,以[笔记] Ubuntu 18.04安装Docker CE及NVIDIA Container Toolkit流程为准. Docker的好处之一,就是在Container里面可以随意瞎 ...
- Ubuntu 18.04 安装Qt 5.12.0
Ubuntu 18.04 安装Qt 5.12.0 1.安装包下载 2.安装QT 3.配置系统路径 4.配置QT creator 6.测试工程 1.安装包下载 官方下载地址 也可以下载到其他版本:htt ...
- 解决ubuntu 18.04安装搜狗输入法 在fcitx的add input method不显示
解决ubuntu 18.04安装搜狗输入法 在fcitx的add input method不显示 背景 由于之前安装过搜狗输入法,但是总是在候选框出现乱码. 于是,就把搜狗输入法删除了,但是后面再安装 ...
- linux 安装软件 垃圾,Ubuntu 18.04 安装垃圾清理工具 BleachBit 2.2
Ubuntu 18.04 安装垃圾清理工具 BleachBit 2.2 BleachBit 可以清理系统缓存文件, 清理磁盘垃圾.下面记录在Ubuntu 18.04下安装垃圾清理工具 BleachBi ...
- Ubuntu 18.04 安装Wine 微信
Ubuntu 18.04 安装Wine 微信 前言 Ubuntu 18.04与Ubuntu 16.04安装Wine和微信总体流程相似但也有小区别 操作步骤 安装Wine 最新版 # 0. 卸载旧版Wi ...
- Ubuntu 18.04 server配置多用户深度学习服务器
Ubuntu 18.04 server配置多用户深度学习服务器 1 重装系统 2 安装图形界面 2.1 更改Ubuntu 镜像源 2.2 安装图形界面 2.3安装gcc , make等库 3 安装Nv ...
最新文章
- i386平台和x86-64平台机器代码的区别
- Ardino基础教程 23_步进电机
- 笔记-中项案例题-2021年上-范围管理
- Zookeeper内部的简单细节(一)
- spark的Web UI查看DAG的两种方式
- mfc this指针
- Win10下python3和python2多版本同时安装并解决pip共存问题
- html不用ajax怎么提交,停止HTML中JS AJAX功能提交按钮
- 为什么在java中不能创建泛型数组
- 家谱编修制作软件修十大优势
- 安卓开发实例(3)装备选择
- python降序_Python中numpy如何进行降序?
- #在NetBeans IDE完成项目1.学生姓名显示器V22.物品价格展示器3.昵称生成器4.货币转换器5.字符数计算器6.素数计算器7.圆面积周长计算器8.年龄计算器9.表白神器V210.阶乘计算器
- 数字音频总线A2B开发详解十一(A2B一Slave板做音效处理-31段EQ,高中低音分频,延时,3D音效等)
- HTML+CSS制作人物介绍卡片效果
- logback自定义appender
- 腾讯类Pinterest网站“读图.知天下” 上线,可用QQ账号登陆
- ArcMap|以表格显示分区统计 ERROR:999999 解决方法
- 微信扫码登录与微信授权登录
- 计算机录入与排版训练课件,计算机录入与排版课件.ppt
热门文章
- 做男孩的父母的路很长
- 中外主流网站差异大揭密(2)
- QMS-云质说质量 - 7 IATF 16949哪个条款严重不符合项最多?
- idea mysql快捷键_IntelliJ IDEA 设置代码提示或自动补全的快捷键(Alt+/)
- 微信小程序开发 开启
- 周明教授《多语言及多模态任务中的预训练模型》Mari 教授《基于显式上下文表征的语言处理》
- 解决删除文件或文件夹时提示“找不到该项目 该项目不在***中,请确认该项目的位置,然后重试。……”
- 泛微第三方异构系统调用流程
- python学法用法 自动刷分_微信跳一跳python使用教程 微信跳一跳python怎么刷分
- DDL DML DCL TCL