sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" 这个脚本会自动安装 Oh My Zsh 并将其设置为默认的 shell。 安装完成后,你可以打开~/.zshrc文件来配置 Oh My Zsh 的主题和插件 nano ~/.zshrc 在这个配置文件中,你可以修改ZSH_THEME变量来更改主题,或者在plug...
oh-my-zsh 的预设主题都挺好看的,最近用的是bira 看上去好的,但是activate了 conda 的环境之后。。 就有点奇怪了。查阅资料动手修改: 首先取消掉默认的环境显示 condaconfig--set changeps1 False 这时候一开始的(base)就会消失了。然后修改 oh-my-zsh 的主题文件$HOME/.oh-my-zsh/themes/bira.zsh-theme ...
1.安装软件包 yum -y install zsh git 2.更改默认终端 chsh -s /bin/zsh 这时候打开终端软件,应该就会默认进入 zsh 了。 配置oh-my-zsh 从igt仓库中拉取oh-my-zsh gitclonehttps://gitee.com/mirrors/oh-my-zsh.git ~/.oh-my-zsh 默认配置 cp~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc...
一.安装Oh My Zsh 第一步:安装zsh # 安装zsh sudo apt install zsh #将zsh 设置为默认shell sudo chsh -s $(which zsh) # chsh 即change shell的缩写 # 运行命令成功后,需要注销,然后登录 # 通过echo $SHELL 来查看当前shell # 若输出为 /bin/zsh 或者 /usr/bin/zsh 则表示当前默认 Shell 是 Zsh ...
2.、找到 ZSH_THEME 配置项,直接修改后面的值就行了,比如我使用amuse主题,要使用什么主题就从上面的github仓库中找到对应的名称修改即可 代码语言:shell 复制 # 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 insta...
shell是命令解析器,mac常见的zsh与bash都是shell的一种,zsh基本能兼容bash,加上oh-my-zsh工具,推荐使用zsh。 1.1 查看与切换 echo $SHELL # 查看当前使用shell chsh -s /bin/bash # 切换为bash chsh -s /bin/zsh # 切换为zsh 1.2 配置文件位置 bash读取的配置文件:~/.bash_profile文件 zsh读取的配置文...
# 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/jiaaaaaaaqi/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will ...
These are settings that you can change in your terminal emulator. For more information, see what is a zsh theme. Themes robbyrussell The default that Robby Russell uses. The rest of the themes, in alphabetical order: A af-magic afowler agnoster Official repository Additional setup: Install one...
# 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/jiaaaaaaaqi/.oh-my-zsh" # Set name of the theme to load --- if set to "random", it will ...
vim ~/.oh-my-zsh/themes/agnoster.zsh-theme 定位到以下内容: # Context: user@hostname (who am I and where am I)prompt_context() { if [[ "$USER" != "$DEFAULT_USER" || -n "$SSH_CLIENT" ]]; then prompt_segment black default "%(!.%{%F{yellow}%}.)%n@%m" fi} 在prompt_seg...