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

推荐订阅源

博客园 - 叶小钗
云风的 BLOG
云风的 BLOG
G
Google Developers Blog
S
SegmentFault 最新的问题
罗磊的独立博客
Hugging Face - Blog
Hugging Face - Blog
美团技术团队
爱范儿
爱范儿
博客园 - 三生石上(FineUI控件)
H
Hackread – Cybersecurity News, Data Breaches, AI and More
D
DataBreaches.Net
F
Fortinet All Blogs
TaoSecurity Blog
TaoSecurity Blog
D
Docker
C
Cybersecurity and Infrastructure Security Agency CISA
K
Kaspersky official blog
宝玉的分享
宝玉的分享
腾讯CDC
Google Online Security Blog
Google Online Security Blog
Recorded Future
Recorded Future
T
The Exploit Database - CXSecurity.com
T
The Blog of Author Tim Ferriss
V
V2EX
S
Securelist
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
C
CERT Recently Published Vulnerability Notes
A
Arctic Wolf
Scott Helme
Scott Helme
L
LINUX DO - 热门话题
Y
Y Combinator Blog
P
Proofpoint News Feed
T
Tor Project blog
AWS News Blog
AWS News Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
The Last Watchdog
The Last Watchdog
博客园 - 聂微东
T
Threat Research - Cisco Blogs
B
Blog
Attack and Defense Labs
Attack and Defense Labs
L
Lohrmann on Cybersecurity
C
CXSECURITY Database RSS Feed - CXSecurity.com
阮一峰的网络日志
阮一峰的网络日志
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
IT之家
IT之家
N
News and Events Feed by Topic
博客园 - 司徒正美
H
Help Net Security
C
Cisco Blogs
C
Check Point Blog
S
Secure Thoughts

Dev

这个设定已经在 2022 年 2 月 10 日移除:降权账号不触发提醒 - V2EX Tornado demos - V2EX 初心 Safari Technology Preview - V2EX Now or Never - V2EX 一个试验中的新的发帖接口 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 - V2EX 改进了主题移动及创作新主题选择节点时的体验 StackOverflow 的锁帖机制 绿色小圆圈的囚徒 部署了夜间模式的代码高亮 最近在持续推进的两件事情 - V2EX IndieWeb Standards 关于 V2EX 的节点的帮助文档 - V2EX Generate Tornado Cookie Secret - V2EX V2EX 的虚拟货币系统的说明文档 V2EX 2019 推荐浏览器 /new 创作新主题界面上的两个小改进 最近完成了关于 JavaScript 方面的一些微小的改进 - V2EX 图片上传界面的手机版已经修复 开始部署 CSS Variables 在新环境里如果不想折腾的话,就先指定 gulp 版本好了 - V2EX 节点主题列表页现在使用节点图标作为 shortcut icon - V2EX 现在用户访问一个节点的最后页数会被记住 7 天 - V2EX AWS Global Accelerator - V2EX Structured data - Breadcrumb - V2EX TODO: 部分节点右侧的相关节点列表太长,影响页面显示,默认情况下这个列表应该是收缩起来的 - V2EX 20180402 - V2EX V2EX 上目前有的美国的城市节点 - V2EX Python modernize - V2EX 20170508 - V2EX 20170426 - V2EX 20170409 - V2EX
powerline-shell: Nice to have everywhere - V2EX
Livid · 2017-08-14 · via Dev

这是一个创建于 3226 天前的主题,其中的信息可能已经有所发展或是发生改变。

安装步骤:

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
hei1000

1

hei1000      2017 年 8 月 14 日

这么花哨, 上图有点麻烦,懒得上图了