oh-my-zsh

Zsh Docker Plugin not Working

一曲冷凌霜 提交于 2019-12-12 07:39:32
问题 I have been using oh-my-zsh for a while now and the docker plugin as recently stopped working for me for some reason. I checked my ~/.zshrc file and the plugin is included plugins=(git colored-man colorize github jira vagrant virtualenv pip python brew osx zsh-syntax-highlighting docker) I checked the ~/.oh-my-zsh/plugins/docker directory and there is a _docker file in there. Yet when I type docker and press Tab, I get none of the autocomplete shortcuts that I used to get. I can confirm that

amended line ending with Vagrant & ZSH

≡放荡痞女 提交于 2019-12-12 04:31:52
问题 I have a vagrant box where I change the default Ubuntu shell to oh-my-zsh . I have a shared folder containing a .zshrc that I copy to the vagrant home folder during provisioning. At some point the line ending for one line in the .zshrc has ^M appended to it so I get the following error when I vagrant ssh : /home/vagrant/.zshrc:source:4: no such file or directory: /home/vagrant/.oh-my-zsh/oh-my-zsh.sh^M The ^M is not visible in the .zshrc file. If I use vim in the vagrant box and re-write the

zsh: command not found: modernizr

ぐ巨炮叔叔 提交于 2019-12-12 03:22:19
问题 I installed modernizr: npm install -g modernizr Everything went well without errors: /Users/myusername/npm/bin/modernizr -> /Users/myusername/npm/lib/node_modules/modernizr/bin/modernizr /Users/myusername/npm/lib After install running: modernizr I get: zsh: command not found: modernizr In my .zshrc file I have: export PATH="/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin" After googling around find this post: Bower: "command not found" after installation and added this line to my .zshrc file:

What is `-a` in a Zshell function and what does it have to do with my shell immediately exiting?

∥☆過路亽.° 提交于 2019-12-11 14:57:00
问题 I'm having an issue with my .zshrc file while using oh-my-zsh. Recently, I've started trying to be more careful about mucking with my base OS environment, so I installed Python (2 and 3) and pyenv using homebrew. While trying to configure the autocomplete for pyenv, I switched on the pyenv plugin in oh-my-zsh. This resulted in my shell shutting down during the launch. I found that I could prevent this from happening by commenting out most of the active portion of the pyenv oh-my-zsh plugin,

OS X Sublime Text3 to use zsh shell

隐身守侯 提交于 2019-12-11 00:11:33
问题 I want to build a python file I get the following error: /bin/bash: python: command not found The reason is that I'm using zsh instead of bash. So how to let Sublime to look at /bin/zsh ? 回答1: This is indicative of your path not being correct and not what shell you normally use. In the case of OSX the path for GUI applications is set via different means than that of terminal programs (which you know based on your comments in your question above). Regardless, to answer your question (and for

OS X Terminal hangs installing vNext KVM after running “source kvm.sh”

。_饼干妹妹 提交于 2019-12-10 17:18:55
问题 I'm trying to install vNext on my Macbook but when I run source kvm.sh the terminal just hangs. My setup: OSX 10.9.5 (Mavericks) Mono 3.10.0 My problem: I followed the instructions for installing vNext on OS X from the GitHub repo: https://github.com/aspnet/Home Essentially: brew tap aspnet/k brew install kvm source kvm.sh Everything seems to go fine until the step where I run source kvm.sh , which hangs the terminal with a message " [Process completed] ". Adding source kvm.sh to ~/.zshrc

CentOS安装oh-my-zsh以及zgen

﹥>﹥吖頭↗ 提交于 2019-12-10 00:34:07
1. 安装依赖软件git和zsh CentOS: yum -y install git zsh Ubuntu: apt-get -y install git zsh 2. 安装oh-my-zsh github的链接如下 https://github.com/robbyrussell/oh-my-zsh 安装的命令如下: sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" 安装结束之后,自动进入了oh-my-zsh界面,可以看到酷炫的oh-my-zsh的欢迎界面。 3. 安装zgen插件 zgen的github的链接如下 https://github.com/tarjoilija/zgen clone zgen项目到home目录下面: cd ~ git clone https://github.com/tarjoilija/zgen.git .zgen 首先在~/.zshrc 的末尾添加如下的配置信息,导入zgen # load zgen source "${HOME}/.zgen/zgen.zsh" source "${HOME}/.zgenrc" 同时在HOME目录下面新建一个.zgenrc文件,内容如下: # check if

node学习准备工作1 --- nvm下载、终端环境iterm2配置

让人想犯罪 __ 提交于 2019-12-09 21:48:13
学无止境 最近在重新学习js基础,可是感觉别人在讨论框架啊什么的,就觉得对于js基础学习提不起劲,想起来node不就是用基础js,也算是学以致用。 一 nvm下载 先下载nvm,下载过程中还遇到了问题,见博客 nvm安装 node学习其实不需要下面这些,只是我觉得学习本身就是一种好奇心的延伸,因此,出于兴趣,特地的配置了一下这些 二 iterm2终端下载及主题配置 觉得mac自带终端好丑,所以安装了iterm2, iterm下载地址 然后配置iterm2的主题 下载地址: http://ethanschoonover.com/solarized 下载的是压缩文件,你先解压一下,然后打开 iTerm2,按Command + ,键,打开 Preferences 配置界面,然后Profiles -> Colors -> Color Presets -> Import,选择刚才解压的solarized->iterm2-colors-solarized->Solarized Dark.itermcolors文件,导入成功,最后选择 Solarized Dark 主题,就可以了。 配置oh my zsh Oh My Zsh 是对主题的进一步扩展 3.1 一键安装 $ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my

oh my zsh showing weird character '?' on terminal

会有一股神秘感。 提交于 2019-12-09 07:56:45
问题 I have installed iTerm2 and Oh-my-zsh. However there is a weird question mark that is coming ever since I have changed ZSH-THEME to "agnoster". Attaching the screenshot for the same. I thought powerline would help but that doesn't seem to happen. Can can anyone help me with this? 回答1: Installing a powerline patched font will solve this. This official documentation provides description about installing poweline fonts. There are two ways to enable powerline patched font in iTerm2. Set a