Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bdossantos/dotfiles
💻 $HOME/.dotfiles
https://github.com/bdossantos/dotfiles
dotfiles shell
Last synced: about 1 month ago
JSON representation
💻 $HOME/.dotfiles
- Host: GitHub
- URL: https://github.com/bdossantos/dotfiles
- Owner: bdossantos
- License: mit
- Created: 2012-11-18T16:50:57.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2024-07-29T13:32:56.000Z (3 months ago)
- Last Synced: 2024-07-29T17:19:31.794Z (3 months ago)
- Topics: dotfiles, shell
- Language: Shell
- Homepage:
- Size: 860 KB
- Stars: 12
- Watchers: 3
- Forks: 2
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# ~/.dotfiles
## dotfiles
### Installation
Using [GNU Stow](http://www.gnu.org/software/stow/):
```bash
git clone https://github.com/bdossantos/dotfiles ~/.dotfiles
cd ~/.dotfiles
make install
```### Uninstallation
```bash
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:
```bash
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
```bash
make run-brew
```## Bash
### Installation
```bash
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 useA 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