GithubHelp home page GithubHelp logo

vanillasprinkles / rc Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 646 KB

my (home) rc files [primarily archlinux]

Shell 32.97% Perl 3.15% Java 1.72% Lua 0.69% Vim Script 0.02% Emacs Lisp 55.14% Python 1.77% Scheme 0.68% Erlang 3.70% Makefile 0.15%

rc's Introduction

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.