{"height":"190","published":"2018-01-02 15:24:12","categories":["zsh","Kubernetes"],"blog_url":"https://int128.hatenablog.com/","width":"100%","author_url":"https://blog.hatena.ne.jp/int128/","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fint128.hatenablog.com%2Fentry%2F2018%2F01%2F02%2F152412\" title=\"kubectl completion\u306e\u9045\u5ef6\u5b9f\u884c\u306b\u3088\u308bzsh\u306e\u8d77\u52d5\u6642\u9593\u77ed\u7e2e - GeekFactory\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","description":"kubectl \u306b\u306f\u30b7\u30a7\u30eb\u306e\u88dc\u5b8c\u6a5f\u80fd\u304c\u7528\u610f\u3055\u308c\u3066\u3044\u307e\u3059\u3002 .zshrc \u3067\u88dc\u5b8c\u6a5f\u80fd\u3092\u6709\u52b9\u5316\u3059\u308b\u3068zsh\u306e\u8d77\u52d5\u306b\u6642\u9593\u304c\u304b\u304b\u308b\u305f\u3081\u3001\u88dc\u5b8c\u6a5f\u80fd\u306e\u6709\u52b9\u5316\u3092\u9045\u5ef6\u5b9f\u884c\u3059\u308b\u3088\u3046\u306b\u3057\u3066\u307f\u307e\u3057\u305f\u3002 \u5177\u4f53\u7684\u306b\u306f\u3001 kubectl \u30b3\u30de\u30f3\u30c9\u306e\u521d\u56de\u5b9f\u884c\u6642\u306e\u307f source <(kubectl completion zsh) \u3092\u5b9f\u884c\u3057\u307e\u3059\u3002 function kubectl () { local kubectl=\"$(whence -p kubectl 2> /dev/null)\" [ -z \"$_lazy_kubectl_completion\" ] && { echo \"\\e[31m$0 completion zsh\u2026","blog_title":"GeekFactory","version":"1.0","image_url":"https://images-fe.ssl-images-amazon.com/images/I/41HRQrBzfOL._SL160_.jpg","provider_name":"Hatena Blog","author_name":"int128","provider_url":"https://hatena.blog","type":"rich","title":"kubectl completion\u306e\u9045\u5ef6\u5b9f\u884c\u306b\u3088\u308bzsh\u306e\u8d77\u52d5\u6642\u9593\u77ed\u7e2e","url":"https://int128.hatenablog.com/entry/2018/01/02/152412"}