1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-28 10:47:19 +00:00

zsh: use container names for fzf docker completion

This commit is contained in:
Daiderd Jordan 2017-07-18 22:34:09 +02:00
parent 0a1461ce7d
commit 61cd181a0f
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -125,8 +125,8 @@ _fzf_complete_docker_post() {
local cmd
cmd=${tokens[2]}
case $cmd in
image|push|rmi|run) awk '{print $1 ":" $2}' ;;
*) awk '{print $1}' ;;
image|push|rmi|run) awk '{ print ($2 == "<none>") ? $3 : $1 ":" $2}' ;;
*) awk '{print $NF}' ;;
esac
}