Last active
April 29, 2022 08:53
-
-
Save jpaulin/5c349d139d26bbb5d32b81231c399cf7 to your computer and use it in GitHub Desktop.
EDRA - edit, enable and rehash new bash aliases and settings, faster than ever!
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Put below lines your .bashrc or similar shell configuration file. | |
# | |
# Thus this 'installs' the edra system as part of your shell environment. | |
# These lines below are what matter: | |
# | |
# Uses file ~/bash_aliases (in your home folder, thus tilde ~) | |
# for storing aliases. | |
# | |
# When you issue 'edra', your favorite editor pops up, and you can edit & save the .rc file | |
# Then edra script automatically also makes these changes immediately | |
# effective into your shell. | |
# | |
# If you use some other editor than 'vim', then replace vim below: | |
alias edra='vim ~/.bash_aliases; ba && hash -r' | |
# ba is for 'source the bash aliases'. This makes your shell read definitions ("source" them) | |
alias ba='. ~/.bash_aliases; echo Realiased!' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Checking out how the edra alias works with a bash shell.
If you have ideas, suggestions, please let me know here! All welcome.
Simplest way to use this is just: