Comments (7)
Yes. I said you have to run it as the full exact path.
Literally run
%userprofile%\scoop\apps\clink\current\clink autorun install
Running something else, such as clink autorun install
, is not the same as running %userprofile%\scoop\apps\clink\current\clink autorun install
.
from clink.
This is something about scoop, which is interfering with Clink.
It's also not normal behavior for scoop.
You'll probably need to look for help in the scoop forums.
Specific details follow:
So I installed clink via scoop. now with each new version I do the following:
> scoop update
> clink update
Specifically how did install clink via scoop?
I tried it just now, and scoop installed it in ~\scoop\apps\clink\current\
.
There's no version number in the directory name.
I tried clink autorun install
and it also doesn't have a version number in the directory name:
C:\Users\chrisant>clink autorun install
Current AutoRun values
Current user:
native : "C:\Users\chrisant\scoop\apps\clink\current\clink.bat" inject --autorun
wow64 : "C:\Users\chrisant\scoop\apps\clink\current\clink.bat" inject --autorun
All users:
native : <unset>
wow64 : <unset>
Clink successfully installed to run when cmd.exe starts (for current user).
Then when I type
clink info
, the version does show the latest, but this version does not match the value ofbinaries
or thescripts
. It also shows an "old" version in theclink autorun show
.Example where version is 1.6.5, and other values are 1.6.3:
...
What is the "correct" way to update?
The problem is that somehow scoop has gotten into an unusual state where it's putting the version number in the directory name. That breaks installing for AutoRun, since installing for AutoRun has to use the full pathname, which then gets invalidated with each new version.
How did scoop come to put the version number in the directory name?
That's something about scoop, not about Clink.
I don't know much about scoop, so I can't directly help.
from clink.
I figured out what's going on:
You ran clink autorun install
after Clink was already injected.
Injecting Clink defines an alias clink
which points to the exact copy of Clink that was loaded -- and that ends up getting the version number in the directory name.
- If you ran
clink autorun install
before Clink was injected, then typingclink
would cause CMD to search for Clink in the system PATH, and it would find the directory name with "current", and then that's what would get registered for AutoRun (instead of the version number directory). - Or if you ran
%userprofile%\scoop\apps\clink\current\clink autorun install
then that would work fine.
So, at this point, then simplest thing is just run %userprofile%\scoop\apps\clink\current\clink autorun install
, and that should get you back into a normal state where scoop and clink can coexist fine.
(And I'll try to see if there's anything Clink can do to compensate for what scoop is doing, but no guarantees since Clink has no control over scoop.)
from clink.
I believe I found a way to compensate for what scoop is doing, so that the clink
alias can end up pointing at scoop's "current" app directory symlink, instead of at the actual app version directory.
from clink.
Thanks for the workaround.
Manually succeeded to overcome:
scoop update clink
clink autorun uninstall
%userprofile%\scoop\apps\clink\current\clink autorun install
%userprofile%\scoop\apps\clink\current\clink inject
from clink.
(Step 3 by itself is the key. The other steps weren't needed.)
from clink.
Actually I've tried that step separetly previously. Didnt help. Unless I must run it as a full path, not just clink autorun install
from clink.
Related Issues (20)
- how to use `os.setalias()` HOT 1
- How change shortcut for Popup Windows HOT 19
- prompt shows leftover text sometimes HOT 2
- Modify Heading HOT 5
- the new `os.setalias` ignore the flags and args HOT 1
- Where to define environment variables in CMD or Clink? HOT 2
- Question: Expanding environment variables during auto complete HOT 9
- some problems HOT 1
- No message print when an update is available HOT 2
- Show history filtered by the typed command HOT 4
- The installer is not copying any files to the newly created %LOCALAPPDAT%\clink directory HOT 3
- What's the diffs to https://github.com/mridgers/clink? HOT 2
- Request: CTRL+D to exit terminal. HOT 4
- How to stop colors? HOT 6
- Change color for cmd command? HOT 7
- things not working HOT 2
- The last character of a right-aligned prompt gets erased HOT 4
- Clink messes with git bash autocomplete HOT 2
- How to improve speed or make it faster? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clink.