- We wanted to learn Rust cause it cool and speedy vroom
- We are starting out at this, feel free to contribute(if you're looking for something to contribute, check TODO.md, or if you think something's a good idea, put in in TODO.md through a pull request)
Look at INSTALLING on how to install wretch!
Look at CHANGELOG for changes and release notes in between versions
Ignore the current paragraph if you already have rustup installed and working
- Download
rustupfrom your package manager or at https://rustup.rs/ if it's not available.
Important
Don't use rust from your package manager,
use rustup instead
If you're on Windows or your distro doesn't have rustup in your package manager use https://rustup.rs/
-
run
rustup update stableto get the latest toolchain -
Clone Repo
git clone https://github.com/addy10s/wretch -
Run
cargo run --releaseto run and build the best version of the project
-
(on Linux/Mac) run
sudo mv target/release/wretch /usr/local/bin/wretchso you can callwretchwithout defining the path (or move it to another folder in the PATH, such as /bin, /USR/BIN/, /SBIN/, /USR/SBIN, or you can put another folder in the PATH) -
(on Windows) to add to your
PATHenvironment variable and run without defining the path everytime you want to run it- You can move it to any folder you want
- I recommend making a folder for cli programs downloaded not from a package manager. like a folder in your documents.
- Then open
Startor the search and type something likeenvorenvironmentand openEdit the system environment variablesControl Panel Tool. - If you are not already make sure you're in the
Advancedtab - At the bottom right of the window click
Environment Variables... - In the
User variables for [your username]section, scroll down until you see something namedPathin theVariablecolumn. - Either double click on that item or click on it once and then click
Edit...in the User varuables section>> - Now click onNewon the window that popped up - Type in the path where your wretch lies, but leave out the wretch as this will include each .cmd, .bat, and .exe file to be in your path. (It also doesn't go into subdirectories)
- Example: C:\Users\username\Documents\command-line-programs
- Example: C:\Users\username\OneDrive\Documents\command-line-programs
- Now click
OK, then clickOKagain, andOKonce more - Now, restart/close any shells/cmd/pwsh/powershells you have open and reopen them
- Now try running
wretch - Instead of doing the above two steps, you can restart your computer.
- You can move it to any folder you want
All logos were created by Addy Tennies, if you want your distro added/you think you can do it better, please keep the art style intact(trying to make it look like a neon sign), and put it in a pull request, and modify this to credit yourself for the logo
Thanks for checking this out!
- Addy Tennies & August
