惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
SegmentFault 最新的问题
博客园 - 三生石上(FineUI控件)
WordPress大学
WordPress大学
博客园 - 【当耐特】
月光博客
月光博客
Vercel News
Vercel News
D
Docker
I
InfoQ
Apple Machine Learning Research
Apple Machine Learning Research
博客园 - 叶小钗
MongoDB | Blog
MongoDB | Blog
GbyAI
GbyAI
有赞技术团队
有赞技术团队
雷峰网
雷峰网
博客园 - 聂微东
小众软件
小众软件
Y
Y Combinator Blog
腾讯CDC
L
LangChain Blog
The GitHub Blog
The GitHub Blog
宝玉的分享
宝玉的分享
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
T
The Blog of Author Tim Ferriss

Dev

这个设定已经在 2022 年 2 月 10 日移除:降权账号不触发提醒 Tornado demos 初心 Safari Technology Preview Now or Never 一个试验中的新的发帖接口 Topic Links Responsive Separators 在技术话题中彻底跑题的回复会被删除 caniusepython3 Spam Pattern V2EX.com/i 增加 Pixelated Display 图片渲染方式 What's New in Chrome 87 新的顶部搜索框 Social 设置中现在支持填入 Nintendo Friend Code,然后就会在个人主页上显示 未读提醒界面的加载行为改进 密码成功更新之后,现在会发送提示邮件 论持续折腾 New Menu for Mobile @ghui 关于接下来会进行的 HTML 调整 16px Deployed: Sticky Reply Box V2EX 2020 改进了主题移动及创作新主题选择节点时的体验 StackOverflow 的锁帖机制 绿色小圆圈的囚徒 部署了夜间模式的代码高亮 最近在持续推进的两件事情 IndieWeb Standards 关于 V2EX 的节点的帮助文档
powerline-shell: Nice to have everywhere
Livid · 2017-08-14 · via Dev

安装步骤:

git clone https://github.com/milkbikis/powerline-shell ~/.powerline-shell
cd ~/.powerline-shell
cp config.py.dist config.py
./install.py

然后将下面的内容放入 .bashrc 的末尾:

function _update_ps1() {
    PS1="$(~/.powerline-shell/powerline-shell.py $? 2> /dev/null)"
}

if [ "$TERM" != "linux" ]; then
    PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi

然后执行:

exec $SHELL

即可完成安装。

因为读取 git 状态这个操作会频繁依赖 git status 的结果,所以需要将系统上的 git 更新到最新版本,这样 git status 会快很多:

sudo add-apt-repository ppa:git-core/ppa
sudo apt-get update
sudo apt-get install git