Skip to content

vanillaSprinkles/rc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my rc files - at least the ones i want people to see

HOME: all my HOME rc's for an X environment setup (and then some)

installation

clone repo
  • sudo mkdir /home/bashDotFiles/

  • sudo chown $(id -u):$(id -g) /home/bashDotFiles/

  • pick one: git clone https://github.com/vanillaSprinkles/rc /home/bashDotFiles/ git clone ssh://[email protected]/vanillaSprinkles/rc /home/bashDotFiles/

  • git sub module sync

    cd  /home/bashDotFiles/
    
for new users (append to /etc/skel/.bashrc and auto create symlink when user logs-in)
cat << 'EOF'  >> /etc/skel/.bashrc


if [[ -f /home/bashDotFiles/HOME/.bashrc ]]; then

  # create symlink: .bash_stuff
  if [ ! -e ~/.bash_stuff ]; then
     ln -s  /home/bashDotFiles/HOME/.bash_stuff  ~/.bash_stuff
  fi

  # create symlink: .bscripts
  if [ ! -e ~/.bscripts ]; then
     ln -s  /home/bashDotFiles/HOME/.bscripts  ~/.bscripts
  fi

  # set PATH so it includes user's private bin if it exists
  [[ -d ~/bin ]] && PATH=~/bin:"${PATH}"
  [[ -d ~/.bscripts ]] && PATH=~/.bscripts:"${PATH}"
  export PATH

 . /home/bashDotFiles/HOME/.bashrc
fi

EOF
symlink (current user cutover; create symlinks ect)
cat << 'EOF'  >> ~/.bashrc


if [[ -f /home/bashDotFiles/HOME/.bashrc ]]; then

  # create symlink: .bash_stuff
  if [ ! -e ~/.bash_stuff ]; then
     ln -s  /home/bashDotFiles/HOME/.bash_stuff  ~/.bash_stuff
  fi

  # create symlink: .bscripts
  if [ ! -e ~/.bscripts ]; then
     ln -s  /home/bashDotFiles/HOME/.bscripts  ~/.bscripts
  fi

  # set PATH so it includes user's private bin if it exists
  [[ -d ~/bin ]] && PATH=~/bin:"${PATH}"
  [[ -d ~/.bscripts ]] && PATH=~/.bscripts:"${PATH}"
  export PATH

 . /home/bashDotFiles/HOME/.bashrc
fi

EOF
. ~/.bashrc

git submodules

use make to sparse-checkout + update select submodules (currently only pulling grawity/code)


RC files backed up with by calling handy-dandy script: "HOME/.bscripts/HomeDotSync" checkout the 'confFile' lines within this script to see the working config location and file

2013-01-21: re-created the repo; removed the work/headless config as it will exist as another repo (rc_headless)

About

my (home) rc files [primarily archlinux]

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published