-
Notifications
You must be signed in to change notification settings - Fork 14.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[hi] Add content/hi/docs/tasks/tools/included/optional-kubectl-confi… #30627
Merged
k8s-ci-robot
merged 8 commits into
kubernetes:dev-1.22-hi.1
from
ashish-jaiswar:New_Branch
Nov 28, 2021
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b5e94bb
[hi] Add content/hi/docs/tasks/tools/included/optional-kubectl-confi…
ashish-jaiswar c4683ce
updated file optional-kubectl-configs-bash-linux.md
ashish-jaiswar ba855e6
updated this file optional-kubectl-configs-bash-linux.md
ashish-jaiswar d1069da
Update content/hi/docs/tasks/tools/included/optional-kubectl-configs-…
ashish-jaiswar e75340f
Update content/hi/docs/tasks/tools/included/optional-kubectl-configs-…
ashish-jaiswar e1e18e7
Update content/hi/docs/tasks/tools/included/optional-kubectl-configs-…
ashish-jaiswar 4bf7cf7
Update content/hi/docs/tasks/tools/included/optional-kubectl-configs-…
ashish-jaiswar 6c8aa38
Update content/hi/docs/tasks/tools/included/optional-kubectl-configs-…
ashish-jaiswar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
52 changes: 52 additions & 0 deletions
52
content/hi/docs/tasks/tools/included/optional-kubectl-configs-bash-linux.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
title: "Linux पर bash ऑटो-कम्पलीशन" | ||
description: "Linux पर bash ऑटो-कम्पलीशन के लिए कुछ वैकल्पिक कॉन्फ़िगरेशन।" | ||
headless: true | ||
--- | ||
|
||
## परिचय | ||
|
||
Bash के लिए kubectl समापन स्क्रिप्ट `kubectl completion bash` कमांड के साथ उत्पन्न की जा सकती है। आपके शेल में समापन स्क्रिप्ट को सोर्स करने से kubectl ऑटोकम्पलीशन सक्षम हो जाती है। | ||
|
||
हालाँकि, समापन की स्क्रिप्ट [**bash-completion**](https://github.com/scop/bash-completion) पर निर्भर हैं जिसका अर्थ है कि आपको पहले इस सॉफ़्टवेयर को इंस्टॉल करना होगा (आप `type _init_completion` चलाकर परीक्षण कर सकते हैं कि आपने पहले से bash-completion इंस्टॉल की है या नहीं)। | ||
|
||
## Bash-completion को इंस्टॉल करें | ||
|
||
कई पैकेज मैनेजर द्वारा bash-completion प्रदान की जाती है ([यहाँ](https://github.com/scop/bash-completion#installation) देखें)। आप इसे `apt-get install bash-completion` या `yum install bash-completion` आदि के साथ इंस्टॉल कर सकते हैं। | ||
|
||
यह कमांड `/usr/share/bash-completion/bash_completion` उत्त्पन्न करता है, जो bash-completion की मुख्य स्क्रिप्ट है। आपके पैकेज मैनेजर के आधार पर, आपको इस फाइल को अपनी `~/.bashrc` फाइल में मैन्युअल रूप से सोर्स करना होगा। | ||
|
||
यह पता लगाने के लिए, अपना शेल पुनः लोड करें और `type _init_completion` रन करे। यदि कमांड सफल होता है, तो आप पहले से ही तैयार हैं, अन्यथा अपनी `~/.bashrc` फ़ाइल में निम्नलिखित जोड़ें: | ||
|
||
```bash | ||
source /usr/share/bash-completion/bash_completion | ||
``` | ||
|
||
अपना शेल पुनः लोड करें और `type _init_completion` टाइप करके सत्यापित करें कि बैश-कम्पलीशन सही ढंग से इंस्टॉल है। | ||
|
||
## kubectl ऑटोकम्पलीशन सक्षम करे | ||
|
||
अब आपको यह सुनिश्चित करने की आवश्यकता है कि kubectl समापन स्क्रिप्ट आपके सभी शेल सत्रों (sourced) में प्राप्त हो जाए। आप ऐसा दो तरीकों से कर सकते हैं: | ||
|
||
- अपनी `~/.bashrc` फ़ाइल में समापन स्क्रिप्ट सॉर्स करें: | ||
|
||
```bash | ||
echo 'source <(kubectl completion bash)' >>~/.bashr | ||
``` | ||
- समापन स्क्रिप्ट को `/etc/bash_completion.d` डायरेक्टरी में जोड़ें: | ||
```bash | ||
kubectl completion bash >/etc/bash_completion.d/kubectl | ||
``` | ||
|
||
|
||
यदि आप के पास kubectl के लिए एक अन्य नाम (alias) है, तो आप उस अन्य नाम के साथ काम करने के लिए शेल समापन को बढ़ा सकते हैं: | ||
|
||
```bash | ||
echo 'alias k=kubectl' >>~/.bashrc | ||
echo 'complete -F __start_kubectl k' >>~/.bashrc | ||
``` | ||
{{< note >}} | ||
bash-completion सभी समापन स्क्रिप्ट को `/etc/bash_completion.d` में सोर्स करता है। | ||
{{< /note >}} | ||
|
||
दोनों दृष्टिकोण बराबर हैं। आपके शेल को पुनः लोड करने के बाद, Kubectl ऑटोकम्पलीशन कार्य करना शुरू कर देगा। |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to use either इंस्टॉल or स्थापित. Using both of them will be unnecessary across the document. Please make amends.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok, I will update.