Wrash is an interactive shell wrapper for you favorite commands!
Wrash will save you some precious key-hits when you have to run multiple subcommands to do something. Instead of running
>>> git add src/source_code.ext
>>> git status
>>> git commit -m 'fix some bug'
>>> git push
You can run:
>>> wrash git
>>> add src/source_code.ext
>>> status
>>> commit -m 'fix some bug'
>>> push
The simplest method is to run make install
. This leverages go install
to do the installtion for us so make sure your path is configured properlly to point to your $GOROOT/bin
dir.
Otherwise you can follow the same instructions for >= v0.3.0
The simplest way is to install vi go
with the command below:
go install github.com/joshmeranda/wrash@<version>
NOTE: because the version is injected at build tikme if you want to check what version you have installed via wrash --version
you will need to pass the ldflags "-X main.Version=<version>
flag as well (replacing <version>
with the desired version). Thi is fixed in v0.4.0
Wrash available on the Arch User Repository (AUR).
For version v0.2.0
we ported this project from Rust to Golang, so the manual build / install process is differnt for those versions.
cargo install --path .
make wrash
ln -s $(realpath bin/wrash) /usr/bin
Clone, build, and install with Cargo.