$ uname -a
Linux dnotebook 5.7.10-201.fc32.x86_64 #1 SMP Thu Jul 23 00:58:39 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux
$ bash --version
GNU bash, version 5.0.17(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2019 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
$ powerline-daemon
The daemon is already running. Use powerline-daemon -k to kill it.
$ tail -n 9 .bashrc
# powershell
function _update_ps1() {
PS1=$(powerline-shell $?)
}
if [[ $TERM != linux && ! $PROMPT_COMMAND =~ _update_ps1 ]]; then
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND"
fi
$ docker ps -a
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
797ad1c8c770 fedora "/bin/sh" 3 days ago Exited (255) 3 days ago dreamy_shamir
bc7dbf546f18 hello-world "/bin/sh" 3 days ago Created blissful_herschel
556829e653bb hello-world "/bin/sh" 3 days ago Created dreamy_noyce
$ pip show powerline-status docker docker-py powerline-docker
Name: powerline-status
Version: 2.8.1.dev9999-git.b-8c6874d85512318966b83d8bfebfef8d1cfaca1b-
Summary: The ultimate statusline/prompt utility.
Home-page: https://github.com/powerline/powerline
Author: Kim Silkebaekken
Author-email: kim.silkebaekken+vim@gmail.com
License: MIT
Location: /home/david/.local/lib/python3.8/site-packages
Requires:
Required-by: powerline-docker
---
Name: docker
Version: 4.2.0
Summary: A Python library for the Docker Engine API.
Home-page: https://github.com/docker/docker-py
Author: None
Author-email: None
License: Apache License 2.0
Location: /usr/lib/python3.8/site-packages
Requires: six, websocket-client, requests
Required-by: docker-compose
---
Name: docker-py
Version: 1.10.6
Summary: Python client for Docker.
Home-page: https://github.com/docker/docker-py/
Author: Joffrey F
Author-email: joffrey@docker.com
License: UNKNOWN
Location: /home/david/.local/lib/python3.8/site-packages
Requires: requests, websocket-client, docker-pycreds, six
Required-by: powerline-docker
---
Name: powerline-docker
Version: 1.0.4
Summary: A Powerline segment for showing Docker container statuses
Home-page: https://github.com/adrianmo/powerline-docker
Author: Adrian Moreno Martinez
Author-email: adrian@morenomartinez.com
License: MIT
Location: /home/david/.local/lib/python3.8/site-packages
Requires: powerline-status, docker-py
Required-by:
Fedora release 32 (Thirty Two)