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.
- VS Code terminal integration
- Enhanced command history settings
- Directory navigation shortcuts
- Git workflow aliases
- Color settings for terminal output
- Local customization support
-
Clone this repository:
git clone https://github.com/ktwu01/awesome-bashrc.git
-
Create a symbolic link to the .bashrc file:
ln -sf ~/path/to/repo/.bashrc ~/.bashrc
-
Restart your terminal or run:
source ~/.bashrc
-
Customization
- Define
$WORKDIR
,$SCRATCHDIR
,$BASHRC_REPO
.
- Define
- 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.
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.
-
Clone this repository.
-
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.
-
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"