Skip to content

daithi-walker/bashrc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bashrc

  • Replace the current .bashrc file with a symlink to the customised version.
# if symlink exists, delete it, if file exists, archive it.
if [[ -L ~/.bashrc ]]; then
    echo "deleting symlink"
    rm ~/.bashrc
elif [[ -f ~/.bashrc ]]; then
    echo "archiving file "
    mv ~/.bashrc ~/.bashrc.$(date +%Y%m%d_%H%M%S)
else
    echo ".bashrc does not exist."
fi

# recreate symlink
ln -s ~/git/bashrc/.bashrc ~/.bashrc

# activate new bashrc file
source ~/.bashrc

About

Files used for custom bashrc

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages