在~/.zshrc中找到plugins关键字,就可以自定义启用的插件了,系统默认加载git。 git插件 命令内容可以参考cat ~/.oh-my-zsh/plugins/git/git.plugin.zsh。 常用的: gapa git add --patch gc! git commit -v --amend gcl git clone --recursive gclean git reset --hard && git clean -dfx gcm git check...
gitclonehttps://github.com/zsh-users/zsh-syntax-highlighting.git${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting ~/.zshrc文件中配置: plugins=(其他的插件 zsh-syntax-highlighting) git-open git-open插件可以在你git项目下打开远程仓库浏览项目。 gitclonehttps://github.com/pauliris...
7 也可以按ctrl+r搜索历史命令,支持模糊匹配,只要知道关键字就可以找到自己执行过的命令 8 还有一个强大功能就是别名,例如gst 就代表git status,别名还可以自定义,在~/.zshrc中添加alias name=command即可,然后执行name就代表执行command
在~/.zshrc中找到plugins关键字,就可以自定义启用的插件了,系统默认加载git。 git插件 命令内容可以参考cat ~/.oh-my-zsh/plugins/git/git.plugin.zsh。 常用的: gapa git add --patch gc! git commit -v --amend gcl git clone --recursive gclean git reset --hard && git clean -dfx gcm git check...
5. 重新启动你的终端(Terminal) 一些预览: 一些遇过的坑 不能把zsh设置为默认shell 如果真的遇到了,那么我们可以手动进入zsh,只需这样: $ zsh ➜ ~ git:(master) ✗ 另外,相关的alias可以复制到~/.zshrc文件里,最后使用source更新一下文件即可: ✗ source ~/.zshrc...
alias -s html=vi,意思就是你在命令行输入hello.html,zsh会为你自动打开vim并读取hello.html; alias -s gz='tar -xzvf',表示自动解压后缀为gz的压缩包。 alias cls='clear' alias ll='ls -l' alias la='ls -a' alias vi='vim' alias javac="javac -J-Dfile.encoding=utf8" ...
init_git -f # or ~/.dotfiles/~/source init_git -f ↻ Update There is a special alias for updating dotfiles: .update You could add the light version of aliases to a Docker image: ADD https://raw.githubusercontent.com/duzun/dotfiles/master/~/.aliasrc /etc/profile.d/aliases.sh ...
Firstly, the update code should show a message when$last_headdoes not match$branch(NB: for#9015aliasmastertomain). I don't think it makes sense to show this message before the update is run – unless you want it to prompt whether to continue or abort the update. After the update, how...
Oh My Zsh comes with a bunch of out-of-the-box features that are not available in vanilla Zsh, such as auto-completion, themeable prompts, alias support, etc. The recommended way to install Oh My Zsh is to use the installer script: 1. Run the below command to download (wget) the ...
.gitmodules Get rid of git submodules May 31, 2014 README.md Add more todos to be done when installing new machine Jul 12, 2020 Rakefile Removes Command-T from the install script Mar 6, 2012 ackrc Adds new ack alias for CoffeeScript ...