Skip to content
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

add completion on tcsh shell for ml command #416

Closed
xdelaruelle opened this issue Sep 26, 2021 · 4 comments
Closed

add completion on tcsh shell for ml command #416

xdelaruelle opened this issue Sep 26, 2021 · 4 comments

Comments

@xdelaruelle
Copy link
Collaborator

When Modules is initialized on tcsh shell both module and ml commands are defined. Shell completion is provided for module command but it is currently missing for the ml command.

To add tcsh shell completion for ml command, the init/tcsh_completion.in file has to be updated.

Shell completion for the ml command is available for bash shell. So looking at init/bash_completion.in file may provide some hints on the completion code to achieve.

@Laurent-Besson
Copy link

As discussed on the ML, I'll propose a first version of completion for "ml" command.

@Laurent-Besson
Copy link

Hello Xavier,

Sorry to come back only now. I have downloaded from GitHub the "main" branch and created locally a branch to implement some simple completion on "ml" command. But I can't push on GitHub. Here is the message I get:

git push --set-upstream origin issue_416
remote: Support for password authentication was removed on August 13, 2021.
remote: Please see https://docs.github.com/get-started/getting-started-with-git/about-remote-repositories#cloning-with-https-urls for information on currently recommended modes of authentication.
fatal: Authentication failed for 'https://github.com/cea-hpc/modules.git/'

Could you help me on this ? What is the standard procedure to push my local branch on Githib ?
Thanks

@Laurent-Besson
Copy link

More news: I hage generated my own Personal Access Token and now I get this message:

remote: Permission to cea-hpc/modules.git denied to Laurent-Besson.
fatal: unable to access 'https://github.com/cea-hpc/modules.git/': The requested URL returned error: 403

Do you have any clue on what is going on ?

@xdelaruelle
Copy link
Collaborator Author

Hello Laurent,

You cannot push directly to the cea-hpc/modules repository. Instead you need to:

  1. fork this repository into your personal GitHub user space
  2. create a specific branch to elaborate the change within
  3. push this branch to your personal fork on GitHub
  4. create a pull request based on this branch

GitHub has some tutorials to help you performing these steps:

xdelaruelle pushed a commit to Laurent-Besson/modules that referenced this issue Apr 17, 2024
Add simple completion (loaded modules, avail modules) to "ml" command
for tcsh shell.

Fixes envmodules#416
@xdelaruelle xdelaruelle added this to the 5.5.0 milestone Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants