git commit -m 'fix: some fix' git push 使用oh-my-zsh 插件后 gaa gcm "fix:some fix" gp 安装oh-my-zsh 后默认会打开 git 插件,它会在命令行下光标前显示当前分支名称,还可以实现自动补全,输入 git re 按 tab 会自提示可以选择命令,再按 tab 就可以选择命令,方便命令输入。 这里罗...
编辑git.zsh,找到git_prompt_info函数: functiongit_prompt_info() { local refif[["$(command git config --get oh-my-zsh.hide-status 2>/dev/null)"!="1"]];thenref=$(command git symbolic-ref HEAD2> /dev/null) ||\if[[ -n $ref ]];thenref=$(command git rev-parse --shortHEAD2> ...
选择一些oh my zsh插件安装 进入oh my zsh的插件文件夹 cd ~/.oh-my-zsh/custom/plugins 下载zsh-autosuggestions和zsh-syntax-highlighting两个插件(推荐使用) git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions git clone htt...
ZSH_CACHE_DIR="$ZSH/cache" fi # Make sure $ZSH_CACHE_DIR is writable, otherwise use a directory in $HOME if [[ ! -w "$ZSH_CACHE_DIR" ]]; then ZSH_CACHE_DIR="${XDG_CACHE_HOME:-$HOME/.cache}/oh-my-zsh" fi #
git在哪个分支都可以显示出来。 不用区分文件夹大小写,直接拼,如desktop,按下tab就可以了。 安装zsh后的效果 git常用操作 克隆至本地: git clone <版本库的网址> 将远端仓库克隆到本地 切换分支: 进入到本地目录项目根目录下 git checkout develop //切换至develop分支,git checkout <分支名> ...
oh-my-zsh 加入Gitee 与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :) 免费加入 已有帐号?立即登录 此仓库是为了提升国内下载速度的镜像仓库,每日同步一次。 原始仓库:https://github.com/ohmyzsh/ohmyzsh master 克隆/下载 git config --global user.name userName git config --...
alias gp='git push' 需要配置的快捷键过多,如果对 git 操作了解不够深入的人无法自行配置。那么 oh-my-zsh 是如何实现的呢? 其实就是用的alias,这里是 Github 上的链接https://github.com/robbyrusse...,通过 url 便知这里的master分支下,plugins插件目录,git插件下的配置文件。
Github开源地址:https://github.com/ohmyzsh/ohmyzsh ohmyzsh是个什么东西 A delightful community-driven (with 2,200+ contributors) framework for managing your zsh configuration. Includes 300+ optional plugins (rails, git, macOS, hub, docker, homebrew, node, php, python, etc), 140+ themes to...
1、下载oh-my-zsh,从Github地址或Gitee地址下载: 注:通过这种方式安装需要先安装HomeBrew /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 2、解压后进入到tools目录执行install.sh sh install.sh image.png ...
alias gst='git status'alias gp='git push'alias gp='git push' 1. 需要配置的快捷键过多,如果对 git 操作了解不够深入的人无法自行配置。那么 oh-my-zsh 是如何实现的呢? 其实就是用的alias,这里是 Github 上的链接https://github.com/robbyrusse...,通过 url 便知这里的master分支下,plugins插件目录...