1 Star 0 Fork 1

yhualin/settings

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.bashrc 654 Bytes
一键复制 编辑 原始数据 按行查看 历史
# ========== append config ==============
# path "~/.bashrc"
# Linux shell terminal show currently git branch name
function git_branch {
branch="`git branch 2>/dev/null | grep "^\*" | sed -e "s/^\*\ //"`"
if [ "${branch}" != "" ];then
if [ "${branch}" = "(no branch)" ];then
branch="(`git rev-parse --short HEAD`...)"
fi
echo " ($branch)"
fi
}
export PS1='\u@\h \[\033[01;36m\]\W\[\033[01;32m\]$(git_branch)\[\033[00m\] \$ '
# use commad "source ./.bashrc" reload
# import oh-my-posh themes setting
#eval "$(oh-my-posh --init --shell bash --config ~/.poshthemes/agnoster.omp.json)"
if [ -f ~/.poshrc ]; then
. ~/.poshrc
fi
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/aervin/settings.git
[email protected]:aervin/settings.git
aervin
settings
settings
master

搜索帮助