This repo contains useful command shortcuts to increase your productivity.
- Mimir-related commands start with
mimir. Usemimir -hto see all available commands. - Ram consumption-related commands start with
node-eat. Usenode-eat -hto see all available commands.
Feel free to modify and make your own alias. How to create a bash alias
-
Set up your custom aliases file (e.g.,
.my_aliases):- Open your aliases file (such as
.my_aliases) in your preferred text editor. - Copy the contents of
.bash_aliasesfrom this repo into your aliases file. - Update the
MIMIR_PATHvariable to point to your desired Mimir installation path. - Place your aliases file in your home directory (
~).
- Open your aliases file (such as
-
Source your aliases file in
.zshrc:- Add the following line to your
~/.zshrcfile if it’s not already present:[ -f "$HOME/.my_aliases" ] && source "$HOME/.my_aliases"
- Replace
.my_aliaseswith your chosen filename if different. - This ensures your aliases are loaded every time you open a new terminal.
- Add the following line to your
-
Reload your terminal:
- Either restart your terminal or run:
source ~/.zshrc
- Your custom shortcuts and aliases will now be available.
- Either restart your terminal or run:
Note: If you have any terminal sessions open while making these changes, you must either restart those sessions or run the appropriate source command (as shown above) in each open terminal to ensure the aliases take effect.
-
Modify
MIMIR_PATHin.bash_aliasesfile:- Open
.bash_aliasesin your preferred text editor. - Locate and modify the
MIMIR_PATHvariable to point to your desired Mimir installation path.
- Open
-
Copy the
.bash_aliasesfile to your user root where.bashrcis located:- Ensure that the
.bash_aliasesfile is placed in your user root directory alongside the.bashrcfile.
- Ensure that the
-
Reload your terminal:
- Either restart your terminal or run:
source ~/.bashrc
- Your custom shortcuts and aliases will now be available.
- Either restart your terminal or run:
Note: If you have any terminal sessions open while making these changes, you must either restart those sessions or run the appropriate source command (as shown above) in each open terminal to ensure the aliases take effect.