首页 > 其他分享 > oh-my-zsh 离线安装配置

oh-my-zsh 离线安装配置

时间:2023-03-28 09:33:39浏览次数:35  
标签:__ oh my zshrc 离线 ____ zsh

1,首先需要安装git 和zsh

yum install -y git zsh

2.下载离线安装包

暂时先空着。

3.解压安装包

tar  -xvf oh-my-zsh.tar

4.安装和配置

4.1 首先切换到zsh

$ cd oh-my-zsh/
$ zsh
This is the Z Shell configuration function for new users,
zsh-newuser-install.
You are seeing this message because you have no zsh startup files
(the files .zshenv, .zprofile, .zshrc, .zlogin in the directory
~).  This function can help you with a few settings that should
make your use of the shell easier.

You can:

(q)  Quit and do nothing.  The function will be run again next time.

(0)  Exit, creating the file ~/.zshrc containing just a comment.
     That will prevent this function being run again.

(1)  Continue to the main menu.

--- Type one of the keys in parentheses ---

Aborting.
The function will be run again next time.  To prevent this, execute:
  touch ~/.zshrc

 4.2安装:

% ./tools/install.sh


Looking for an existing zsh config...
Using the Oh My Zsh template file and adding it to /home/credit/.zshrc.

Time to change your default shell to zsh:
Do you want to change your default shell to zsh? [Y/n] y
Changing your shell to /bin/zsh...
Changing shell for credit.
Shell changed.
Shell successfully changed to '/bin/zsh'.

__ __
____ / /_ ____ ___ __ __ ____ _____/ /_
/ __ \/ __ \ / __ `__ \/ / / / /_ / / ___/ __ \
/ /_/ / / / / / / / / / / /_/ / / /_(__ ) / / /
\____/_/ /_/ /_/ /_/ /_/\__, / /___/____/_/ /_/
/____/ ....is now installed!


Before you scream Oh My Zsh! look over the `.zshrc` file to select plugins, themes, and options.

• Follow us on Twitter: https://twitter.com/ohmyzsh
• Join our Discord community: https://discord.gg/ohmyzsh
• Get stickers, t-shirts, coffee mugs and more: https://shop.planetargon.com/collections/oh-my-zsh

 4.3配置:

vim .zshrc

修改:ZSH_THEME="robbyrussell" -> ZSH_THEME="ys"

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

  4.4.使配置生效:

source .zshrc

标签:__,oh,my,zshrc,离线,____,zsh
From: https://www.cnblogs.com/lambertwe/p/17263847.html

相关文章

  • MyBatis中Java类型与别名的对应关系表
    常见Java类型有许多内置的类型别名。注意,它们都是不区分大小写的,由于重载名称而对原语进行特殊处理。下面给出对应关系表:别名Java类型_bytebyte_longlong_......
  • 安装MYSQL
    安装MYSQLhttps://dev.mysql.com/downloads/repo/yum/比如我们要安装8.0版本,系统是CentOS7,先安装MySQL安装源 下载MySQL安装源的安装包,或者复制下载链接,使用yumloca......
  • mysql笔记1 基本语法(待完结)
    语法样式总的来说挺像c++的,无论是分号结尾,不强制的缩进还是/**/的注释。不过要注意它并不区分大小写,这很重要语句分类分为四种,定义的、增删改的、查询的、和管权限的。......
  • MySQL内存
    目录InnoDB架构缓冲池(BufferPool)数据预读缓冲池(BufferPool)简介BufferPool的管理空闲页(FreePage)脏页(DirtyPage)小结InnoDB的缓存淘汰策略传统LRU算法的缺点InnoDB如......
  • mysql加解密,substring substring_index函数
    mysql加解密,substringsubstring_index函数SELECTto_base64(AES_ENCRYPT('测试串','key12345678'));SELECTAES_DECRYPT(from_base64('iqJIDwYLlcAZ/AP3VvODJg=='),'ke......
  • sqlalchemy_learn_sqlite
    /Users/song/codelearn/sqlalchemy_learn/init_test_data.py#!/usr/bin/envpython3#-*-coding:utf-8-*-importasyncioimportrandomfromfakerimportFakerf......
  • UI自动化-MySQL
    importpymysql'''连接mysql数据库参数:paramhost:Hostwherethedatabaseserverislocated:paramuser:Usernametologinas:parampassword:Passwordtouse.:p......
  • MySQL 中索引是如何实现的,有哪些类型的索引,如何进行优化索引
    MySQL中的索引前言索引的实现哈希索引全文索引B+树索引索引的分类聚簇索引(clusteredindex)非聚簇索引(non-clusteredindex)联合索引覆盖索引回表查询......
  • mybatis面试题
    1.Mybatis中${}和#{}有什么区别? #{}是预编译处理,${}是字符串替换Mybatis在处理#{}时,会将sql中的#{}替换为?号,调用PreparedStatement的set方法来赋值;Mybatis在......
  • remote server can't connect mysql
    最近,在写node项目时,远程服务器在连接mysql数据库时,出现一下问题:  解决此问题:1)    2)  具体详看:https://stackoverflow.com/questions/3791694......