随笔-开发环境-安装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
posted @ 2024-05-20 16:11  LiYanbin  阅读(96)  评论(0)    收藏  举报