Git Product home page Git Product logo

Comments (4)

chrisant996 avatar chrisant996 commented on May 25, 2024 1

You could put this in a clink_start.cmd file:

set CLINK_PATH=~\winfiles\Settings\clink-path;~\winfiles\Settings\clink-completions

The doc section about %CLINK_COMPLETIONS_DIR% has a "Note:" section that specifically says it's not for use with the clink-completions repo, and explains why not.

I don't know anything about zoxide.

from clink.

chrisant996 avatar chrisant996 commented on May 25, 2024

I can reply more later, but how did you decide to configure it that way?
That's not how those work, and it's not how the directions say to do it.
I recommend reviewing the directions again, and the documentation of those environment variables.

from clink.

eggbean avatar eggbean commented on May 25, 2024

To answer your question, I was just adding to what I have been doing for years. I have set these other environment variables in the same way in clink_start.cmd.

set GIT_SSH=%USERPROFILE%\winfiles\bin\plink.exe
set GH_BROWSER="C:\\Program\ Files\\qutebrowser\\qutebrowser.exe"
set LESSHISTFILE=%APPDATA%\_lesshst
set PATH=C:\Program Files\Vim\vim90;C:\Program Files (x86)\GnuPG\bin;%USERPROFILE%\scoop\shims;%USERPROFILE%\winfiles\bin;%USERPROFILE%\winfiles\scripts;C:\Program Files\GitHub CLI;%PATH%
set EDITOR=vim
set LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40 ..........

Because all these work fine I just assumed that it would work too. Is this wrong for these variables? I'll have another look at the instructions.

from clink.

chrisant996 avatar chrisant996 commented on May 25, 2024

In particular look at docs for the completion dir environment variable (https://chrisant996.github.io/clink/clink.html#completion-directories). It's not for pointing at the clink-completions repo.

That repo contains normal scripts that have to run when loaded. Not deferred to when commands are typed. It also contains a completions\ directory, which does get deferred. But all script directories automatically look for deferred scripts under a completions\ subdirectory.

The clink_completions_dir variable is for adding additional directories that contain scripts to be deferred until command names are typed, i.e. additional completions\ directories but named differently or in different locations. You don't want that.

It's why you're getting the errors.

from clink.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.