Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Autocomplete script doesn't run  #409

Open

Description

@s11i-code

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/satu.salekari@futurice.com/.tmc-autocomplete.sh:44: command not found: complete
/Users/satu.salekari@futurice.com/.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

Activity

  1. s11i-code commented on Nov 6, 2020

    @s11i-code
    Author

    Also this:

    %complete                             
    zsh: command not found: complete
    

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

  2. dontepsu commented on Jan 14, 2021

    @dontepsu

    +1
    OS X Bigsur with zsh.

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

  3. ckygel commented on Sep 21, 2021

    @ckygel

    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 join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions