bash: read -p "prompt" message zsh: read "message?prompt",如果 read 命令的第一个参数包含一个问号(?),那么问号后面的内容将被解释为提示符,并且当shell处于交互模式时,这个提示符会显示在标准错误输出(通常是终端)上。 例子: root@hcss-ecs-b5f1 ~ ❯ read "message?what?" 02:03:54 PM what?ss...
"$PS1", "Prompt String 1" 指定命令行界面中的环境变量。widgets:line editorCommands are referred ...
README MIT license Modular, fast and elegant ZSH prompt. Displays the right information at the right time. Features: sleek look modular layout using configurable sections in the left and right prompt the appearance of each section can be customized using format strings ...
README Code of conduct MIT license Pure Pretty, minimal and fast ZSH prompt Overview Most prompts are cluttered, ugly and slow. We wanted something visually pleasing that stayed out of our way. Why? Comes with the perfect prompt character. Author went through the whole Unicode range to find...
EN Readme 截图展示 功能特色 使用简单方便,轻量级,无额外依赖 支持添加多个命令,并且支持给命令添加别名 输入的命令错误时,将会提示相似命令(包含别名提示) 快速方便的添加选项绑定--long,支持添加短选项-s 支持绑定参数到指定名称, 支持必须required,可选,数组isArray三种设定 ...
DISABLE_UPDATE_PROMPT=true 要禁用自动升级,修改 ~/.zshrc 文件: DISABLE_AUTO_UPDATE=true 卸载 只需要在命令行中执行 uninstall_oh_my_zsh 就能自行删除并恢复 bash 或 zsh 配置。 使用Oh My Zsh 插件 Oh My Zsh 附带了大量的插件,可以直接使用,详细的参考官网。
README GPL-3.0 Tmoe-zsh 介绍 预览Preview GIF Screenshot THEMES COLOR SCHEMES FONTS UI LOGS 2.INSTALLATTION 2-1.使用脚本安装 2-2.MANUALLY GIT CLONE 手动克隆 2-3.MANUALLY CONFIGURE 手动配置 windows-terminal 3. INSTRUCTIONS 使用说明 3-1.COMMANDS 基本命令 3-2. zshtheme 命令说明 3-3. zsh...
cache custom lib log MIT-LICENSE.txt oh-my-zsh.sh plugins README.markdown templates themes tools 1. 2. lib 提供了核心功能的脚本库 tools 提供安装、升级等功能的快捷工具 plugins 自带插件的存在放位置 templates 自带模板的存在放位置 themes 自带主题文件的存在放位置 ...
DISABLE_UPDATE_PROMPT="true" #开启自动更新 插件及主题安装 高亮插件 :git clonehttps://github.com/zsh-users/zsh-syntax-highlighting.git$ZSH_CUSTOM/plugins/zsh-syntax-highlighting ~/.zshrc 配置source $ZSH_CUSTOM/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh ...
zsh自带的插件是git且只有这一个,另一个好用的的插件是zsh-syntax-highlighting功能是shell当前可用的命令都高亮显示,绿色表示命令可用,橙色表示打错或者命令不可用。安装方法参照git里的ReadMe,进到~/.oh-my-zsh/plugins目录,执行如下: git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${Z...