Skip to content

alexsagarra/bashrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

bashrc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages