Add this line to your .bashrc file:
alias vib='vi ~/.bashrc && source ~/.bashrc'
Then type source ~/.bashrc and the change will have been made.
So whenever you want to change your .bashrc file and have it come into effect for the current terminal:
vibwhich will edit .bashrc and will run source on it automatically when you finish editing.
No comments:
Post a Comment