$ sh-c"$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"# 如果上面两种情况还安装不了,可以使用如下方式。 # via git clone git clone https://github.com/ohmyzsh/ohmyzsh.git~/.oh-my-zsh cp~/.oh-my-zsh/templates/zshrc.zsh-template~/.zshrc chsh-s$(whi...
最后,用 VIM 编辑~/.bashrc文件,在其最后加入zsh,表示终端打开默认执行 zsh。 参考链接 [1]. Windows Terminal完整指南 [2]. Windows 10更新失败在百分99处卡住的处理方法 [3]. Install Terminal + git-bash + zsh + oh-my-zsh on Windows 10
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git echo "source ${(q-)PWD}/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" >> ${ZDOTDIR:-$HOME}/.zshrc 自动补全/提示 zsh-users/zsh-autosuggestions他可以在你历史指令中找到与你当前输入指令匹配的记录,并高亮显示,如果想直接...
由于现在没有安装zsh主题,可以这样区分bash和zsh,bash的光标在第二行,zsh的光标在同一行: 设置默认启动 设置Git Bash 默认使用 Zsh 每次打开Git Bash终端,你会发现默认还是Bash终端,而不是Zsh,可以通过编辑Bash终端的配置文件.bashrc来实现默认使用Zsh,在Git Bash终端中输入命令: vim ~/.bashrc Vim默认是命令模式,...
配置zsh 为 Git Bash 的默认 shell 。在~/.bashrc(用户主目录)中添加如下内容: # Enable zsh if[ -t 1 ];then execzsh fi 若安装 Git Bash 时,完全按照上文说明,则在用户根目录下,有一个 .bashrc 文件,否则请自行创建。 安装oh-my-zsh
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc chsh -s $(which zsh) # 打开新的终端会应用新的zshrc配置 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11.
安装git-bash https://git-scm.com/downloads 安装这个没什么好说的,按照提示点击下一步操作。如果不知道怎么配置,全部默认即可。 打开后是类似这个样子 https://pic1.zhimg.com/80/v2-be6c033a8d8f0c47a1a4b81f736034d1_720w.png 下载zsh 的包 ...
语法高亮gitclonehttps://github.com/zsh-users/zsh-syntax-highlighting.git${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting 然后和上面一样的步骤 去进行配置,打开 vim ~/.zshrc,修改 plugins plugins=(git zsh-autosuggestions zsh-syntax-highlighting) ...
// 比如跳转到工作目录aliasdgg='cd /mnt/f/git-source/github'// vscode 打开要编辑的文件或文件夹code sticky-notes 也就是相当于win10下解锁了oh my zsh。 那不是win10,也想通过设置别名来提高效率,是不是就没有办法了呢,可以使用git bash设置alias,安装git,自带git bash。
git clone https://github.com/Pilaton/OhMyZsh-full-autoupdate.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/ohmyzsh-full-autoupdate 1. 2. 3. 以上这些插件是必备插件,推荐安装使用,但是他默认不是 zsh 的插件,所以需要安装使用。zsh 默认的插件可以直接配置.zshrc中的 plugin 中使用,并不需要安...