Search code examples
downloadwgetfish

How do I use wget (or any other downloading command) when using fish (friendly interactive shell)?


I'm trying to download some files from a website, git specifically. I can't quite figure out how to use the download command. wget isn't a command in fish, and their documentation didn't have anything explaining another web downloading command.

Thanks in advance, and I'm really sorry if this is an ignorant question. I did do my best to sort it out beforehand.

Edit: The command I'm using is this:

wget -O ~/.vimrc http://github.com/lucasoman/Conf/raw/master/.vimrc

But wget isn't a command in fish.


Solution

  • From what I've read of the documentation, fish is like other UN*X shells, in that there's no notion of "a command in fish". A command in a UN*X shell is either

    • one of a small set of built-in commands;
    • an executable program or script, with the same file name as the command, in a directory in your search path;
    • in some shells, an alias or shell function.

    Your search path is in the PATH variable in fish, as it is in most other UN*X shells. The command echo $PATH will print it. If the directory containing the wget executable image isn't in any of the directories listed by echo $PATH, fish won't find it.