随笔-开发环境-安装oh-my-bash
https://github.com/ohmybash/oh-my-bash
install
curl --proxy socks5h://127.0.0.1:1234 -L https://raw.githubusercontent.com/ohmybash/oh-my-bash/master/tools/install.sh -o oh-my-bash-install.sh
export OSH_REPOSITORY=https://githubfast.com/ohmybash/oh-my-bash.git; bash -x oh-my-bash-install.sh
修改主题
vim ~/.bashrc 编辑OSH_THEME
oh-my-bash
使用font主题:并修改theme(个人喜好,编辑~/.oh-my-bash/theme/主题名/主题名.theme.sh,改成显示全路径,输入在新的一行)
vim ~/.oh-my-bash/themes/font/font.theme.sh
PS1="${_omb_prompt_green}bin| ${_omb_prompt_bold_teal}\w $(scm_prompt_char_info)${ret_status}→ ${_omb_prompt_normal}"
PS1+="\n${_omb_prompt_reset_color}\$ "
PS1: ./themes/font/font.theme.sh
修改显示时间为24制
编辑~/.bashrc
THEME_CLOCK_FORMAT="%H:%M:%S"
source "$OSH"/oh-my-bash.sh
本文来自博客园,作者:LiYanbin,转载请注明原文链接:https://www.cnblogs.com/stellar-liyanbin/p/18202225

浙公网安备 33010602011771号