最近刚刚重装了系统,并安装了优雅的shell命令工具zsh,突然发现我放在我的工作目录下的.bash_profile居然在启动的时候执行,导致我的java的一些配置没有注册到bash中.然后查资料得知,安装zsh后他会自动执行~/.zshrc文件,而里面并没有包含.bash_profile 一.Mac系统的环境变量,加载顺序为: /etc/profile /etc/paths ~/.bash_profile ~/.bash_login ~/.profile ~/.bashrc 2. 在其最后面加…
解决mac安装homebrew后报错-bash: brew: command not found     参照官网上很简单的一句安装命令, /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" 安装完毕后,发现使用brew命令,却总是提示:-bash: brew: command not found /usr/local/bin不在PATH中…
1.安装zsh mac下自带zsh,但不是最新.查看zsh版本:zsh --version如果没有安装, 可以通过brew安装最新版,brew install zsh 2.安装oh-my-zsh cd ~ git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh -目录下没有.zshrc3.1   touch .zshrc3.2   cp ~/.zshrc   ~/.zshrc.orig 创建zsh配置文件cp ~/.o…
我们将安装 zsh ,其拓展功能和主题将由 oh-my-zsh 提供.其中Env.sh 文件用于维护别名(aliases),输出(exports)和路径改变(path changes)等等,以免影响 ~/.zshrc. 1.使用 Homebrew 完成 zsh 和 zsh completions 的安装 brew install zsh zsh-completions 2.安装 oh-my-zsh 让 zsh 获得拓展功能和主题 curl -L https://github.com/robbyr…
第一步: 1先确定一下.bash_profile是否存在. 2在mac终端输入: test -e .bash_profile && echo "found" || echo "not found" 3.bash_profile是一个环境配置的脚本, 如果显示的是not found, 则在终端运行 touch ~/.bash_profile 运行完之后重复2, 显示found, 则表明创建成功 第二步: 1安装grunt-cli sudo npm in…
localhost:~ jerry$ Processing /var/www/git/python/tesserocr -bash: Processing: command not found localhost:~ jerry$ pip3 install tesserocr Collecting tesserocr Using cached https://files.pythonhosted.org/packages/f8/6d/4e81e041f33a4419e59edcb1dbdf3c5…
大概是这种问题 running build running build_py running build_ext building'M2Crypto.__m2crypto' extension swigging SWIG/_m2crypto.i to SWIG/_m2crypto_wrap.c swig -python -I/usr/include/python2.7-I/usr/include -includeall -modern -builtin -outdir build/lib.lin…
安装过很多次oracle,顺顺利利的,今天在新机子上安装oracle12c client过程中竟然神奇的报出一个错误: 很明显的,已经很明确的给出了安装失败的原因:无法访问临时位置!实际上,在安装数据库之前,数据库会检查是否满足符合数据库安装数据库的先决条件.事实上Oracle执行先决条件检查是依赖c$共享,很多系统管理员为了安全默认都关闭了这个. 那么如何解决这个问题呢?下面给出两个途径: 1.     最简单的方法:cmd中输入一行共享命令. 进行细节的高级设置的话需要用下面的笨方法了. 2…
前言 Zsh是一款非常棒的Shell,使用Linux和Mac系统的人,基本上都知道zsh的存在. 问题 在安装完Zsh后,zsh是可以使用的,但是重启之后,又恢复至默认的bash. 我在安装好之后,使用命令chsh -s /bin/zsh切换默认shell. 然后,输出$SHELL变量是这样的: root@XY ~ # echo $SHELL /bin/bash 设置无效,我以为要重启. 于是,重新启动Bash On Ubuntu On Window. 结果依然无效. 办法 我在BashOnWi…
解决Mac下Sequel Pro 1.1 连接 Homebrew安装Mysql5.7.8的问题 Sequel Pro encountered an unexpected error Sequel Pro 1.1 encountered an unexpected error when connecting to mysql 5.7.8 rc via ssh 在OS X El Capitan环境下用 + homebrew安装 + MySQL 5.7.9: 解决办法,运行下面得命令升级mysql,重…