{"id":21007891,"url":"https://github.com/lflxp/smkubectl","last_synced_at":"2026-02-24T11:31:58.379Z","repository":{"id":219925484,"uuid":"750282852","full_name":"lflxp/smkubectl","owner":"lflxp","description":"Kubectl intelligent prompt command, implemented based on fzf+golang+zsh completion technology","archived":false,"fork":false,"pushed_at":"2024-12-20T07:43:02.000Z","size":307,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-26T08:47:15.854Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lflxp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-01-30T10:47:54.000Z","updated_at":"2024-12-20T07:34:48.000Z","dependencies_parsed_at":null,"dependency_job_id":"5197d7ce-0fd0-4213-a1ae-be7778e27c7b","html_url":"https://github.com/lflxp/smkubectl","commit_stats":null,"previous_names":["lflxp/smkubectl"],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/lflxp/smkubectl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Fsmkubectl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Fsmkubectl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Fsmkubectl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Fsmkubectl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lflxp","download_url":"https://codeload.github.com/lflxp/smkubectl/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Fsmkubectl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29780604,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T09:10:27.414Z","updated_at":"2026-02-24T11:31:58.344Z","avatar_url":"https://github.com/lflxp.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n![](asset/pod.png)\n\n[简体中文](README.zh-CN.md)\n\n# Introduction\n\nSmkubectl=kubectl+fzf+zsh completion is a tool used to execute commands in the Kubernetes environment. Kubernetes is an operating system used to manage containerized applications, running on distributed clusters. Kubectl is a command-line tool for interacting with Kubernetes clusters, fzf is a tool for performing interactive searches in text files, and zsh completion is a completion tool for automatically completing commands.\n\nThe design of this tool combination is to improve the command execution efficiency of users in the Kubernetes environment. Kubectl provides a rich command set for managing various resources on the Kubernetes cluster. However, these commands are often lengthy, and entering all commands at once in the terminal can be cumbersome. Fzf provides interactive search functionality, allowing users to select the desired command through keyboard shortcuts or fuzzy search. Finally, zsh completion can automatically complete commands based on the prefix entered by the user, reducing the workload of user input.\n\n\n# Characteristics\n\n* Supports automatic completion of commands such as kubectl, go, git, and kill\n* No other dependencies, one file 'smkubectl' takes care of everything\n* No complex and tedious fzf configuration, no need to install fzf commands\n* Automatically generate zsh completion configuration, simple configuration is sufficient, no need for complex zsh | zsh completion configuration\n* Ready to use out of the box, improved efficiency, simple and easy to use\n\n# Dependency\n\nTo use this tool combination, you need to install and configure kubectl, fzf, and zsh. The following are the steps for installation and configuration:\n\n\n* Install kubectl\n* No need to install fzf [buildin]\n* Install zsh\n\n\nBy using a combination of kubectl, fzf, and zsh completion tools, you can improve the efficiency of executing commands in the Kubernetes environment, making your work easier.\n\n# Installation\n\n1. Install\n\n```\n\ngo install github. com/lflxp/ smkubectl@latest\n\n```\n\n2. zsh enables automatic completion\n\n*Zsh*\n\n```Zsh\n\nautoload - U compinit\u0026\u0026compinit - u\n\nsource\u003c(smkubectl completion zsh)\n\n```\n\n*Bash*\n\n```Bash\nautoload - U compinit \u0026\u0026 compinit - u\n\nsource\u003c(smkubectl completion bash)\n```\n\n3. Establish a Kubectl soft connection (optional)\n\n```\nln - s ` which kubectl `/usr/local/bin/k\n```\n\n# Using\n\n## Shortcut keys\n\n\u003e ~\n\n## Operation\n\n* k+~\n* k g+~\n* k get+~\n* k get po+~(no spaces)\n* k get po+~(with spaces)\n* k edit po - n\n* k get po - n namespace pod - c+~\n* k logs - f+~\n\n## DEBUG mode\n\n### Enable DEBUG logs\n\n```zsh\nsource \u003c(smkubectl completon zsh -d)\n```\nor\n```bash\nsource \u003c(smkubectl completon bash -d)\n```\n\n### Set completion log input environment variables \n\n```bash\nexport BASH_COMP_DEBUG_FILE=/tmp/1\ntail -f $BASH_COMP_DEBUG_FILE\n```\n\n# Supported commands\n\n- [x] kubectl\u0026\u0026k\n- [x] kill\n- [x] Git\n- [ ] ssh\n- [x] go\n- [x] showme\n\n# TODO\n\n- [ ] 完成smkubectl新旧架构 \n- [ ] 新增git命令支持\n- [ ] 新增go\n- [ ] 新增kill -1-9\n- [ ] 新增showme","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flflxp%2Fsmkubectl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flflxp%2Fsmkubectl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flflxp%2Fsmkubectl/lists"}