Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sarisia/dotfiles

Linux, devcontainer & macOS configurations
https://github.com/sarisia/dotfiles

Last synced: 20 days ago
JSON representation

Linux, devcontainer & macOS configurations

Awesome Lists containing this project

README

        

# sarisia/dotfiles

- Easy setup with `curl -L boot.sarisia.cc | bash` (this redirects to `curlboot.sh`)
- zsh and bash support (works out of the box with macOS)
- Codespaces support (See [Structure](#structure))

# Install

```
$ curl -L boot.sarisia.cc | bash
```

# Structure

## Initialize flow

### zsh (default shell for macOS / popular Codespaces images)

1. `.zprofile`
2. `.profile` (from `.zprofile`)
3. `.zshrc` (from `.zprofile`)

### bash (most Linux distributions)

1. `.bash_profile`
2. `.profile` (from `.bash_profile`)
3. `.bashrc` (from `.bash_profile`)

## Files

- `.profile`: configurations not depends on shell (PATH, EDITOR, ...)
- `.zprofile`, `.bash_profile`: simple script for loading `.profile` and `.zshrc`
or `.bashrc` depends on shell (in order to avoid shells' configuration files loading
order problem. see [bash manual](https://www.gnu.org/software/bash/manual/html_node/Bash-Startup-Files.html))
- `.bashrc`, `.zshrc`: shell-related configurations (alias, ...)

# Refs

- [Difference between Login Shell and Non-Login Shell? - Unix & Linux Stack Exchange](https://unix.stackexchange.com/questions/38175/difference-between-login-shell-and-non-login-shell)