Comments (5)
Put the new curl.exe
in %cmder_root%/bin
from cmder.
This worked thank you I forgot about this option
Also sorry for the late reply but since I am not an advanced user I would like to ask what to do if the program exe has additional folders with libraries and files should I also copy them inside %cmder_root%/bin
?
For example the curl program full version download has this folder structure:
├───bin
├───dep
│ ├───brotli
│ ├───cacert
│ ├───libpsl
│ ├───libressl
│ ├───libssh2
│ │ └───docs
│ ├───nghttp2
│ ├───nghttp3
│ ├───ngtcp2
│ ├───zlib
│ └───zstd
├───docs
│ ├───examples
│ └───libcurl
├───include
│ ├───brotli
│ ├───curl
│ ├───nghttp2
│ ├───nghttp3
│ ├───ngtcp2
│ └───openssl
└───lib
with curl.exe
in its own bin
subfolder and at the same level what look like some important programming files in the include
and lib
folders
Should I copy all these curl folders to %cmder_root%/bin
even if they will be now a level below curl.exe ?
Thanks again for the help
from cmder.
Ok so I wanted to write one last update to this issue before I consider it settled
Since in this case the program .exe file is inside a nested folder structure I decided to delete everything from %cmder_root%/bin
and try to add my user defined PATH directory to the %cmder_root%/bin/config/user_profile.sh
bash file
To do that I write this command at the last line of user_profile.sh
export PATH="/c/User_Defined_PATH_Dir/curl/bin:$PATH"
This way "curl --version" detects the updated 8.6.0 in the Cmder Bash console. Also when I run "which curl" it points to the user defined install directory
The only side-effect is when I run "echo $PATH" it prints "/c/User_Defined_PATH_Dir/curl/bin" 2 times: at the start of the output and then a second time in the original position (since this Windows PATH was detected before but still the Bash console didnt use the updated 8.6.0 version... maybe because the entry order has changed now?)
I dont know if this is a bug or working as intended but I consider this a better solution when a program uses nested folders with libraries and dependencies
Thank you very much for the help Cmder is becoming my favorite software in Windows Im still learning but I will be sure to support it any way I can
from cmder.
there is no harm in what you have done but another approach might be to add an alias command to user-profile.sh
and remove the path modification:
alias curl='/c/User_Defined_PATH_Dir/curl/bin'
Additionally you could add the same command above to ~/.bashrc
to also set the same alias in Git Bash
launched outside Cmder.
from cmder.
I edited my last comment after I realized you were only trying to override curl path in Cmder bash.
from cmder.
Related Issues (20)
- does cmder come packaged with curl and php? HOT 10
- [Bug] Not able to attach to debugger in VS Code Terminal HOT 3
- [Bug] cmder gets stuck on git reflog HOT 9
- 运行总是提示:“此时不应有 D:\Program。” HOT 6
- Aliases not recognized + system can't find path specified HOT 14
- [Bug] problem with "home" and 'end" keys
- [Feature request] Allow terminal to accept and run commands before cmder is fully loaded HOT 5
- [Bug] Shortcuts not work in cmder, and alias names aren't coloured correctly. HOT 6
- Question: Alias with admin permission
- [Bug] wired color blocks when running a CLI program based on Python and prompt_toolkit in cmder HOT 6
- [Bug] Chinese compatibility problem after resolving Kconfig files HOT 2
- [Feature request] fzf integration
- [Feature request] Update Clink version chrisant996 / v1.6.8 HOT 7
- [Bug] Predefined task: as Admin
- Question: How do I change the route cmder has to find ssh keys? HOT 11
- [Bug] Midnight Commander and msys HOT 1
- [Bug] Cmder ceases to be compatible with program Admin by Request HOT 8
- [Bug] 'git --version' returned an improper version string HOT 5
- [Bug] Weird output and process hangs
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 cmder.