clink-completions icon indicating copy to clipboard operation
clink-completions copied to clipboard

Installation Guidance:

Open idvorkin opened this issue 8 years ago β€’ 8 comments

Is there guidance on how you install these completions?

For examples, right now I'm copying from this git directory into %localappdata%. Is there a better way?

idvorkin avatar Feb 29 '16 16:02 idvorkin

After 2+ yrs I'm a new user and pretty shocked to see this issue, and not a single line in even the readme indicating how on earth one goes about actually installing this. I see it referenced on a (also years old) pull request to attempt to add a single line (really?) in the readme and a whole page arguing and finally apparently rejecting on how to properly use git to clone a repo.

So, how is this installed? To what path? What gets read/loaded? TIA!

CollinChaffin avatar Jun 12 '18 23:06 CollinChaffin

@CollinChaffin In my own defence I can say that users are mostly supposed to get these completions installed with Cmder (IIRC the latest version of Cmder already includes latest version of these completions) so manual install is not required usually.

If you need to integrate this into clean clink installation I think you can try putting these files (by cloning repo or downloading archive) to the directory where Clink stores its *.lua files (you can try searching around directories described here). Also this is an open-source repo so if you find an answer, feel free to comment on existing PR or submit a new one - your efforts would be appreciated! :)

Regards, Vladimir

vladimir-kotikov avatar Jun 13 '18 07:06 vladimir-kotikov

https://trzeci.eu/my-setup-for-conemu-and-clink/ Explanation of setting up clink with these scripts here

Edit: Create a folder named profile inside the clink directory. There the scripts goes. I suggest putting all the scripts inside a folder named clink-completions.

nstrelow avatar Aug 07 '18 18:08 nstrelow

If you installed Clink using the .exe installer. Put the lua files into the directory:

%localappdata%\clink

If you are using the .zip distribution of Clink . Put the lua files into the directory:

<clinkinstalldir>\profile

You can find this in the clink helper : image image

wswind avatar Feb 16 '20 14:02 wswind

Using a new version of clink (I'm running v1.1.48) you can run clink installscripts path/to/clink-completions

fallaciousreasoning avatar Mar 31 '21 06:03 fallaciousreasoning

I added this repo as a submodule to my clink installation, and I use a powershell script called in clink_start.cmd to register its path if needed. This is the script: https://github.com/giggio/clinkfiles/blob/main/install-scripts.ps1 This is where it is called: https://github.com/giggio/clinkfiles/blob/d6b7f9ff907017d61016512362a76ac80c8ccd90/clink_start.cmd#L5

I hope it helps someone.

giggio avatar Feb 10 '22 02:02 giggio

TL;DR: No need to defend yourself. Help would be nice, but it's all good! Been in your situation before, so I understand! πŸ˜‰

"Ad Nauseam" Version: Personally I don't think you need to defend yourself if you were kind enough to supply the completions in the first placeβ€”"beggars can't be choosers" and all that. Coming from a GNU/Linux environment and being a software engineer for a living, I am quite used to having to figure things out myself when it comes to building, configuring and using source code and software. I'm very grateful for your hard work!

But having said that, it is always nice when code/software is released with a smidgen of "getting started" guidance. Of course, as you said, these were meant for use with Cmder, so I can understand why you felt it wasn't necessary. 😁

In my defense (for seeking guidance), however, I am actually using these beautifully crafted completions with ConEmu in a custom setup, as I prefer that over Cmder when I use Windows. The latter is fine, of course, but I prefer the greater level of customization and utility provided by the former, personally.

In short, thanks for the completions, and don't worry about defending yourself. I'm just grateful for the release and I can figure it out or ask elsewhere. πŸ‘Œ

byteknight avatar Feb 17 '22 14:02 byteknight

People who use chrisant996 's version of clink can also use the command clink info the see the scripts location

image

wswind avatar Feb 18 '22 02:02 wswind

Added installation directions in 47e75bbc3960a12ab10874cbe33efa2a1c00b9cd.

chrisant996 avatar Aug 26 '22 05:08 chrisant996