文件名称:pwompt:用 go 编写的 bash 提示
文件大小:48KB
文件格式:ZIP
更新时间:2024-06-21 19:26:31
Go
扑杀 用 Go 编写的 PS1 安装 go get github.com/AndrewVos/pwompt 将此添加到您的~/.bashrc或任何地方: export PWOMPT_CONFIG='battery_charging?("white", "⏚")not_battery_charging?("white", "⌁")battery_percentage("red", "yellow", "green")battery?("white", " ")c("yellow", "[")user("magenta")c("white",":")cwd_short("blue")c("yellow", "]")git?("white", " ")git_branch("magenta")git_dirty?("red", "*")last_exit_failed?("white",
【文件预览】:
pwompt-master
----colour.go(349B)
----user.go(76B)
----git.go(756B)
----main.go(4KB)
----README.md(3KB)
----screenshot.png(47KB)
----exit_code.go(191B)
----battery.go(1019B)
----cwd.go(552B)