Skip to content

My personal bashrc file. Makes the terminal look comfortable, and provides a number of Bash aliases.

License

Notifications You must be signed in to change notification settings

zedseven/bashrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bashrc

License: MIT

My personal .bashrc file. Makes the terminal look comfortable, and provides a number of Bash aliases mainly focused around Rust and its associated tools.

Terminal

A screenshot of how the terminal looks with the modifications made by this file

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

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 and clear to single characters
  • 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 runs cargo nono then builds for a target that doesn't support std
    • Meant to be used alongside my Rust project template

Used Tools

Environment

Currently (as of 2021-11-06) used with Git For Windows, though it should work without modification on an actual Linux Bash installation.

About

My personal bashrc file. Makes the terminal look comfortable, and provides a number of Bash aliases.

Topics

Resources

License

Stars

Watchers

Forks

Languages