Skip to content
This repository has been archived by the owner on Jan 8, 2025. It is now read-only.

Autocomplete script doesn't run #409

Open
s11i-code opened this issue Nov 6, 2020 · 3 comments
Open

Autocomplete script doesn't run #409

s11i-code opened this issue Nov 6, 2020 · 3 comments

Comments

@s11i-code
Copy link

s11i-code commented Nov 6, 2020

I just installed TMC to my MacBook (OSX Catalina 10.15.7)
When I try to source theTMC autocomplete (which is the line TMC adds to .zshrc ), this happens. I also to ran the tmc command to show it's in the $PATH, so I guess it's the 'tmc complete' that's the issue.

 % source ~/.tmc-autocomplete.sh || true
/Users/[email protected]/.tmc-autocomplete.sh:44: command not found: complete
/Users/[email protected]/.tmc-autocomplete.sh:44: command not found: complete
% tmc complete 
Command complete doesn't exist.
% tmc
Usage: tmc [args] COMMAND [command-args]

TMC commands:
  config       Set/unset TMC-CLI properties and change settings
  courses      List the available courses
  download     Download exercises for a specific course
  exercises    List the exercises for a specific course

@s11i-code
Copy link
Author

s11i-code commented Nov 6, 2020

Also this:

%complete                             
zsh: command not found: complete

Does this happen because Apple made zsh the default shell instead of bash for OSX Catalina?

@dontepsu
Copy link

dontepsu commented Jan 14, 2021

+1
OS X Bigsur with zsh.

I have zsh on my other PC with ubuntu and it works.

@microwavestine
Copy link

microwavestine commented Sep 21, 2021

In .zshrc file, add these lines:

autoload -U +X compinit && compinit
autoload -U +X bashcompinit && bashcompinit
source /Users/xxx/.tmc-autocomplete.sh || true

Source: https://stackoverflow.com/questions/3249432/can-a-bash-tab-completion-script-be-used-in-zsh

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants