.bashrc

My script on GitHub: https://github.com/alexsagarra/bashrc

## Add contend/aliases to .bashrc

My little script to add my favortite bashrc settings to new bashrc’s.

Safe your bashrc favortites in your git account.

So you can add always add your favortites to any new -bashrc.

## Info

create a new file and add some contend for the bashrc file.

touch mycontend.txt
echo "alias up='sudo apt update && sudo apt upgrade'" > mycontend.txt
./add2bashrc.sh mycontend.txt

## script

add all contend from file to the .bashrc

./add2bashrc.sh test.txt

## bashrc commands

show the .bashrc file
cat $HOME/.bashrc
edit the .bashrc file
sudo nano $HOME/.bashrc

update the .bashrc file

source $HOME/.bashrc
source ~/.bashrc

## alias commands

alias up='sudo apt update && sudo apt upgrade'
unalias up
unalias -a [remove all alias]

Schreibe einen Kommentar