🥫My environment-in-a-can
Find a file
2024-02-23 22:28:08 -05:00
files feat(shell): add rust + starship setup 2024-02-23 22:14:00 -05:00
apt.txt feat: install zsh instead of expecting it 2024-01-28 11:08:43 -05:00
bootstrap.sh refactor: condense steps and bootstrap into a single script 2024-02-23 22:28:08 -05:00
extras.vim feat: NVIM common config and setup 2022-11-05 12:53:26 -04:00
git_config Feat/git aliases (#3) 2022-11-19 11:29:45 -05:00
README.md docs: update notes on steps 2024-01-28 11:01:36 -05:00
shell_extras refactor(shell-extras): remove handling for bashrc 2024-01-28 12:54:49 -05:00

🥫Environment-in-a-can

Environment tweaks for everyday happiness.

Setup

git clone git@github.com:mcataford/env.git <path-of-your-choosing> | . ./bootstrap.sh

The setup script will look for pre-existing managed blocks and will not update the file if one is found.

Updating existing setups

Since the managed blocks only source the files in this repository, pulling in updates from remote should bring in any new tweaks you want to apply. If changes are made to the managed blocks, you will need to first remove them from where they live and rerun the setup script.

Structure

The package is structured as such:

env/
    bootstrap.sh    # Adds bootstrap block to your shell's config file.
    steps.sh        # Definitions for bootstrapping steps
    shell_extras    # Functions, aliases and exports for the shell.
    extras.vim      # Common config for NVIM.

Adding code to shell_extras will add code that gets executed on shell-start.

Adding steps

Each step is defined as a function in steps.sh and should start with a call to pre_step to ensure that a header gets echo'ed out. Additionally, the function should be called from bootstrap in bootstrap.sh and the TOTAL_STEPS should be updated to reflect the number of steps.

Contributing

I'm not currently looking for contributions since this is mainly about standardizing my own setup across machines.