Skip to content

An optimized `.bashrc` template for HPC users (e.g., TACC Lonestar 6, UCAR HPC), featuring module management, auto-backup, aliases, and environment redirection.

Notifications You must be signed in to change notification settings

ktwu01/awesome-bashrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

This system ensures you'll never lose important .bashrc configurations while also keeping your backup storage organized and efficient. The backups are stored in your $WORK directory, which has more space than your home directory.

What's Included

  • VS Code terminal integration
  • Enhanced command history settings
  • Directory navigation shortcuts
  • Git workflow aliases
  • Color settings for terminal output
  • Local customization support

Installation

  1. Clone this repository:

    git clone https://github.com/ktwu01/awesome-bashrc.git
  2. Create a symbolic link to the .bashrc file:

    ln -sf ~/path/to/repo/.bashrc ~/.bashrc
  3. Restart your terminal or run:

    source ~/.bashrc
  • Customization

    • Define $WORKDIR, $SCRATCHDIR, $BASHRC_REPO.

Features

  • VS Code Integration: Use code . to open the current directory in VS Code
  • Navigation: Use .., ... for faster directory traversal
  • Git Shortcuts: Current is good enough; you can also use aliases like gs for git status, gp for git push
  • Directory Shortcuts: Quick access to commonly used directories.
  • Auto-backup: Auto-backup via Git, once use the sourcebash command.

Usage Notes

After installation, you'll need to restart your terminal or run source ~/.bashrc to apply the changes.

If you make changes to the repository version, remember to push your changes to keep all your machines in sync.

== BACKUP SYSTEM ==

Enhanced automatic backup system for .bashrc

  1. Clone this repository.

  2. Do not use zshhistory. instead, save only a copy to BASHRC_REPO="$WORK/config_backups/bashrc", every time use sourcezsh. and the commit msg is always set to "update". if there is no new zsh content then it will no commit.

  3. once use use sourcezsh, commit and push it to githb. that is, embed the "commit and push it to githb" cmd in zsh itself.

BASHRC_REPO="$WORK/config_backups/bashrc"

About

An optimized `.bashrc` template for HPC users (e.g., TACC Lonestar 6, UCAR HPC), featuring module management, auto-backup, aliases, and environment redirection.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages