配置oh-my-bash

1,升级更改bash:

brew install bash

把这个bash提供的目录/usr/local/Cellar/bash/4.4.23/bin/bash加入到/etc/shells中: ,然后
1) go to “System Preferences” > “Users & Groups”
2) click the padlock icon and authenticate
3) right-click the icon for your user and select “Advanced Options…”
4) change the value for “Login shell” from “/bin/bash” to your preferred shell
重启电脑,命令行查看是否已用新的bash:

echo $BASH_VERSION

2,安装

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh)"

3,添加插件修改主题:

vim .bashrc
plugins=(git bundler osx rake ruby)
OSH_THEME="axin"

其中OSH_THEME的取值可以去目录~/.oh-my-bash/themes/ 去看

4, source
在~/.profile中加入:

. /Users/kylefan/.bashrc

然后

source  ~/.bashrc

如果在~/.tmux.conf中有设置默认shell的语句请删除

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值