Crates.io | docker-fetch |
lib.rs | docker-fetch |
version | 0.1.0 |
source | src |
created_at | 2024-11-24 17:33:55.032899 |
updated_at | 2024-11-24 17:33:55.032899 |
description | A docker previewer for fzf |
homepage | |
repository | https://github.com/kloki/docker-fetch |
max_upload_size | |
id | 1459444 |
size | 24,116 |
Intended to be used as a preview for (fzf)[https://github.com/junegunn/fzf]
Add to your .bashrc.
dsh() {
container=$(docker ps -q | fzf --header="Pick Container" --preview="docker inspect {} | docker-fetch")
echo -e "\033[36mShell:\033[0m $container"
docker exec -it $container bash
}
cargo install docker-fetch --locked