Skip to content

johnkerl/dotfiles

Repository files navigation

johnkerl/dotfiles

This is a place to put my Linux/Darwin/Unix dotfiles. It's grown by accretion and evolution, 1992-ish onwards. See also http://github.com/johnkerl/scripts.

Setup option: scripted from checkout

Run either or both of these from within a checkout of this repo:

  • bash ./install-dotfiles.sh does setup of this repo's files.
  • bash ./install-full.sh does setup of some of my other utility repos.

Setup option: scripted from curl

./download-and-install.sh can be run in curl:

curl https://raw.githubusercontent.com/johnkerl/dotfiles/refs/heads/main/install-dotfiles.sh | bash

That clones this repo to ~/git/johnkerl/dotfiles, then cd's there and runs bash ./install-dotfiles.sh.

Setup option: manual

ln -s $(pwd)/bashrc         ~/.bashrc
ln -s $(pwd)/zshrc          ~/.zshrc
ln -s $(pwd)/bzrcs-public   ~/.bzrcs-public
ln -s $(pwd)/ctags          ~/.ctags
ln -s $(pwd)/screenrc       ~/.screenrc
ln -s $(pwd)/vanilla        ~/.vanilla
ln -s $(pwd)/vimrc          ~/.vimrc
ln -s $(pwd)/R/environ      ~/.Renviron
ln -s $(pwd)/R/profile      ~/.Rprofile

You may need to add to ~/.bash_profile:

. ~/.bashrc

See also

See also https://github.com/johnkerl/scripts/tree/master/suitcase and https://github.com/johnkerl/away for other remote-setup options.

Structure

  • At installation, ~/.bashrc, ~/.zshrc, ~/.screenrc, ~/.vimrc are symlinked to point to this repo's bashrc, zshrc, screenrc, vimrc here.
  • ~/.bzrcs-public/ is symlinked to point to bzrcs-public/here.
  • ~/.bashrc and ~/.zshrc source ~/.bzrcs-public/init. The bz reflects the fact that these scripts work with bash and zsh both.
  • ~/.bzrcs-public/init is responsible for sourcing the other files in its directory.
  • If ~/.bzrcs-private/ (a symlink to a directory containing an init file) and/or ~/.bzrc-work (a symlink to a file) are present, they'll be sourced as well.

About

A place to put my Linux/Unix dotfiles

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •