-
-
Notifications
You must be signed in to change notification settings - Fork 43
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
fix: improve the completion settings suggested in aqua completion --help
#3297
Merged
suzuki-shunsuke
merged 3 commits into
aquaproj:main
from
akinomyoga:completion-bash-example
Nov 27, 2024
Merged
fix: improve the completion settings suggested in aqua completion --help
#3297
suzuki-shunsuke
merged 3 commits into
aquaproj:main
from
akinomyoga:completion-bash-example
Nov 27, 2024
Conversation
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
The current help text suggests adding the completion settings in .bash_profile and .zprofile, but .bash_profile and .zprofile are loaded only in login shell sessions. They are not loaded in (non-login) interactive sessions started inside the login shells, and thus the completion would be disabled in non-login interactive sessions. In general, .bash_profile and .zprofile should only contain the settings that are automatically inherited by the child processes or the global user settings in the operating system. The interactive settings should be put in .bashrc and .zshrc. In this patch, we suggest .bashrc and .zshrc instead of .bash_profile and .zprofile, respectively.
The source builtin in Bash 3.* does not support reading from a pipe, so `source <(command)` fails silently. `eval "$(command)"` works in all versions of Bash.
akinomyoga
changed the title
Improve the completion settings suggested in
fix: improve the completion settings suggested in Nov 27, 2024
aqua completion --help
aqua completion --help
Thank you for your contribution! |
akinomyoga
added a commit
to akinomyoga/aquaproj.github.io
that referenced
this pull request
Nov 27, 2024
This patch reflects the changes in the main repository aquaprpj/aqua applied by PR aquaproj/aqua#3297 [1] to the online documentation. [1] aquaproj/aqua#3297
akinomyoga
added a commit
to akinomyoga/aquaproj.github.io
that referenced
this pull request
Nov 27, 2024
This patch reflects the changes in the main repository aquaprpj/aqua applied by PR aquaproj/aqua#3297 [1] to the online documentation. [1] aquaproj/aqua#3297
Merged
4 tasks
suzuki-shunsuke
added a commit
to aquaproj/aquaproj.github.io
that referenced
this pull request
Nov 27, 2024
* fix: reflect changes in aquaproj/aqua for shell setup example This patch reflects the changes in the main repository aquaprpj/aqua applied by PR aquaproj/aqua#3297 [1] to the online documentation. [1] aquaproj/aqua#3297 * fix: `cmdx usage` --------- Co-authored-by: Shunsuke Suzuki <suzuki.shunsuke.1989@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Check List
Require signed commits
, so all commits must be signedThree fixes are included in this PR.
(1)
.bashrc
and.zshrc
4e21f1dThe current help text suggests adding the completion settings in
.bash_profile
and.zprofile
, but.bash_profile
and.zprofile
are loaded only in login shell sessions. They are not loaded in (non-login) interactive sessions started inside the login shells, and thus the completion would be disabled in non-login interactive sessions.Actual
Expected
In general,
.bash_profile
and.zprofile
should only contain the settings that are automatically inherited by the child processes or the global user settings in the operating system. The interactive settings should be put in.bashrc
and.zshrc
.In this commit, we suggest
.bashrc
and.zshrc
instead of.bash_profile
and.zprofile
, respectively.(2) Fix for Bash 3.* 8cbabba
The currently suggested setting does not work for Bash 3.* because the
source
builtin in Bash 3.* does not support reading from a pipe andsource <(command)
fails silently. Instead,eval "$(command)"
works in all versions of Bash.Actual
Expected
(3) Style improvement 64ad3b4
This is an appearance improvement for the examples of different shells, and the change is just as you see in the diff.