Skip to content

bdossantos/dotfiles

Folders and files

NameName
Last commit message
Last commit date
Dec 30, 2024
Jan 17, 2024
Jul 2, 2019
Feb 6, 2017
Dec 27, 2014
Dec 15, 2024
Apr 17, 2015
Dec 9, 2014
Dec 17, 2024
Jul 29, 2024
Jun 3, 2015
Mar 8, 2018
Jan 11, 2023
Dec 30, 2024
Jan 30, 2025
Feb 7, 2017
Feb 6, 2017
Sep 5, 2013
Nov 19, 2024
Aug 23, 2022
Dec 20, 2019
Oct 2, 2019
Dec 21, 2016
May 6, 2020
Sep 23, 2013
Jul 21, 2019
Dec 19, 2023
Feb 15, 2023
Jun 16, 2023
Nov 22, 2024
Aug 15, 2014
Dec 1, 2016
Apr 27, 2022
Apr 14, 2021
Dec 29, 2024
Jul 20, 2015
Mar 29, 2017
Oct 18, 2023
Mar 31, 2023
Mar 20, 2025

Repository files navigation

~/.dotfiles

dotfiles

Installation

Using GNU Stow:

git clone https://github.com/bdossantos/dotfiles ~/.dotfiles
cd ~/.dotfiles
make install

Uninstallation

cd ~/.dotfiles
make uninstall

Mac setup

Sensible OS X defaults

When setting up a new Mac, you may want to set some sensible OS X defaults:

su - admin -c "env PATH=$PATH:/usr/sbin/ bash -x $HOME/.dotfiles/.macos"
su - admin -c "env PATH=$PATH:/usr/sbin/ bash -x $HOME/.dotfiles/.macos_hardening"

Install Homebrew Formulae/Native apps

make run-brew

Bash

Installation

chsh -s "$(brew --prefix)/bin/bash"
exec $SHELL

Choosing between .bashrc, .profile, .bash_profile, etc [...]

  • ~/.bash_profile should be super-simple and just load ~/.profile and ~/.bashrc (in that order)
  • ~/.profile has the stuff NOT specifically related to bash, such as environment variables (PATH and friends)
  • ~/.bashrc has anything you'd want at an interactive command line. Command prompt, EDITOR variable, bash aliases for my use

A few other notes:

  • Anything that should be available to graphical applications OR to sh (or bash invoked as sh) MUST be in ~/.profile
  • ~/.bashrc must not output anything
  • Anything that should be available only to login shells should go in ~/.profile
  • Ensure that ~/.bash_login does not exist.

See also https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html