Giter Site home page Giter Site logo

Comments (5)

daxgames avatar daxgames commented on May 25, 2024

Put the new curl.exe in %cmder_root%/bin

from cmder.

megatux123 avatar megatux123 commented on May 25, 2024

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.

megatux123 avatar megatux123 commented on May 25, 2024

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.

daxgames avatar daxgames commented on May 25, 2024

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.

daxgames avatar daxgames commented on May 25, 2024

I edited my last comment after I realized you were only trying to override curl path in Cmder bash.

from cmder.

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.