My personal .bashrc
file. Makes the terminal look comfortable, and provides a
number of Bash aliases mainly focused around Rust and its associated tools.
In the above screenshot, the two commands are cargo clean
and
cargo build --release
, respectively. (the first one isn't cc
as you might
expect because I have that aliased to cargo clippy
)
Aliases are designed to be as short as possible without conflicting with each other or with standard tools & commands.
This can lead to them being a little hard to remember if not used frequently.
As such, an aliases
alias is also provided to list them all, though really
it just wraps the existing Bash alias
default command.
Many of the aliases are more than just simple redirects - a lot of them apply switches and CLI arguments to achieve certain expected behaviour.
Some notable alias types:
- General Bash commands
- Making
ls
provide certain information and display a certain way by default - Shortening
exit
andclear
to single characters
- Making
- Git commands for common operations
- Automatically sign all commits
- An absolute ton of Cargo commands
and Rust tools
- Many of which have variants for Debug/Release mode
no-std
checking alias that runscargo nono
then builds for a target that doesn't supportstd
- Meant to be used alongside my Rust project template
- Git
- Rust (
nightly
) - Clippy
- Miri
- cargo-generate
- cargo-expand
- cargo-nono
- cargo-license
- cargo-outdated
Currently (as of 2021-11-06) used with Git For Windows, though it should work without modification on an actual Linux Bash installation.