Created
September 12, 2018 13:03
-
-
Save amasok/a432e1ad0dd1032826a7bcaeafe89604 to your computer and use it in GitHub Desktop.
docker コンテナIDをpecoで選択してプロンプトにinsertする
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function anyframe-widget-insert-docker-ps() { | |
docker ps | tail -n +2 \ | |
| anyframe-selector-auto \ | |
| cut -d" " -f1 \ | |
| anyframe-action-insert | |
} | |
zle -N anyframe-widget-insert-docker-ps | |
bindkey '^xd' anyframe-widget-insert-docker-ps |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment