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

feat: support tcsh #10

Merged
merged 5 commits into from Nov 27, 2023
Merged

feat: support tcsh #10

merged 5 commits into from Nov 27, 2023

Conversation

sigoden
Copy link
Owner

@sigoden sigoden commented Nov 22, 2023

Usage:

./script/setup-shell.sh tcsh

Add the following code to '~/.tcshrc'

# argc-completions
setenv ARGC_COMPLETIONS_ROOT  "/tmp/argc-completions"
setenv ARGC_COMPLETIONS_PATH "$ARGC_COMPLETIONS_ROOT/completions"
setenv PATH "$ARGC_COMPLETIONS_ROOT/bin\:$PATH"
set autolist
set ARGC_TCSH_SCRIPTS=`ls -p -1 "$ARGC_COMPLETIONS_ROOT/completions" | sed -n 's/\.sh$//p'`
eval `argc --argc-completions tcsh $ARGC_TCSH_SCRIPTS`

Note: even though sigoden/argc#276 has been merged, support for tcsh will only be available after the new version of argc is released.

@sigoden sigoden merged commit 77142f9 into main Nov 27, 2023
1 check passed
@sigoden sigoden deleted the feat-tcsh branch November 27, 2023 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant