Skip to content

A shell script to clone and symlink dotfiles from a git repository

License

Notifications You must be signed in to change notification settings

bitcrush/dotsetup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

dotsetup

A shell script to clone and symlink dotfiles from a git repository

quick install

curl -sSL http://git.io/rcndots -o dotsetup && chmod +x dotsetup

or

wget -q http://git.io/rcndots -O dotsetup && chmod +x dotsetup

usage

usage: dotsetup [options]

  -a   symlink dotfiles for all installed programs"
  -c   clone git repository"
  -h   print this screen"
  -t   print a list of installed programs"
  -v   install or update vim plugins"

example

Get the setup script and make it executable

curl -sSL http://git.io/rcndots -o dotsetup && chmod +x dotsetup

Check for already installed programs

./dotsetup -t

Install missing/desired programs

Depending on your distribution run f.e.:

# For Arch Linux based distributions
pacman -Sy git tmux vim zsh

# For Debian based distributions
apt-get update && apt-get install git tmux vim zsh

# For Red Hat based distributions
yum update && yum install git tmux vim zsh

Clone dotfiles repo and try to symlink the config files for all installed programs

./dotsetup -a

Run zsh and make it the default shell

f.e.:

exec zsh
sudo chsh -s /bin/zsh [username]

TODO

  • add more arrays to dotfiles()
  • add a flag to overwrite/backup existing dotfiles
    • add interactive confirmation switch

About

A shell script to clone and symlink dotfiles from a git repository

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages