Skip to content

tsj5/dotfiles

Repository files navigation

dotfiles

Configuration for personal use.

Methodology used here: https://www.atlassian.com/git/tutorials/dotfiles Defines a git-dotfile shell alias wrapping git; repo files are cloned to ~/._dotfile_repo/.

TODO

  • Cross-platform script for symlinking VSCode and sublime text files on Linux.

How did we set up our shell, again?

Dotfiles here attempt to handle bash and zsh on MacOS (Darwin) and Linux (by testing uname in the body of each script). In both cases, init for interactive login and non-login shells should be the same.

For both bash and zsh,

  • .profile sets $PATH and other key shell variables;
  • .aliases sets aliases for interactive shells.

These are sourced from the following init scripts:

For bash, the only function of .bash_profile is to source .bashrc, which sources .profile, .aliases, and handles bash-specific init.

For zsh, .zshenv is called on init for all shells (interactive or not), so we source .profile there and use it to set ZDOTDIR to .zsh, where the rest of the zsh-specific files are. We don't have a .zprofile, because .zshrc is sourced whether we're a login shell or not. .zshrc does zsh-specific init for interactive shells and sources .aliases.

Links

About

Configuration for personal use.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published