For Debian users or variants (Ubuntu, Linux Mint, PopOS) is possible to download TReq using the .deb file.
After download it by link HERE you can just run the command below pointing to file.
sh
$ sudo dpkg -i path_to_file.deb
For Arch Linux or Manjaro users is possible download TReq using AUR.
sh
$ git clone https://aur.archlinux.org/treq.git
$ cd treq
$ makepkg -si
Or, if you use the yay just run...
sh
$ yay -S treq
For anyone else, you can also download TReq by Crates.io repository. Using this method requires to have Rust installed.
sh
cargo install treq
First of all, after installed TReq is necessary setup the EDITOR
env variable.
sh
export EDITOR=vim # instead vim you can use 'code', 'nano', 'emacs', etc..
To don't run this command ever time before use TReq append it in setup of your.
sh
echo 'export EDITOR=vim' >> ~/.bashrc # to bash users
echo 'export EDITOR=vim' >> ~/.zshrc # to zsh users
echo 'export EDITOR=vim' >> ~/.config/fish/config.fish # to fish users
It's great use some terminal editor, like Vim or Emacs to have a smooth experience. Since you'll can open them in same terminal session of TReq.
However, it's totally fine use some Graphical editor like VS Code or Atom. In these cases, when you hit the command to 'Edit' TReq will open it up and then you'll need to hit 'r' to reload the content of file in TReq ever time you make some change. Since, TReq gets the content of opened file with editor when the command to call it ends.