Simple alias implementation (?) for windows using doskey
List available alias
aliasSet an alias
alias set key=valueRemove an alias
alias del keyReload alias
alias loadNot much to say, just build it, I guess.
git clone einjerjar/cmd_alias
cd cmd_alias
cargo build --release- After building, expose the release file (
/target/release/alias.exe) to path (either copy it to an existing exposed folder or add the build folder to path (not a good idea)). - Run the
setup.regfile included within the project at least once to apply thealiases.cmdon every instance of cmd.
- Run the file at least once to generate the alias file (there will likely be an error on the first run, you can ignore it).
- Profit.
- Figure out a way to add the alias file to the cmd/ startup (mb, too lazy to see if possible).
- Profit.
Some suggested alias to for a more authentic feel (lol) (add them in the same order to prevent issues, or just use alias.exe directly!)
alias set alias=alias.exe set $*
alias unalias=alias.exe del $*This way you can use alias and unalias in a similar to most unix oses.
Also, due to the way it is implemented, alias set and alias del actually runs alias list when there is no extra argument, thus allowing for alias and unalias to list the available aliases instead or error out, eyy :D.
As a bonus you can still use alias.exe incase you messed up.
Actual list of all available commands
alias [list] [set/add] [del/remove] [load/silent/source/s]
