Automated dotfiles install & automated macOS/ Ubuntu setup scripts
It's a good idea to use a version control system (VCS) like git
to manage your dotfiles in one place and a script to bootstrap all your dotfiles, so that every time you set up a new machine or a remote server, you just need to clone the repository and run the ./install
script.
The install script is idempotent, meaning that you could run the script repeatedly without causing any side effects.
Hope this repository gives you inspiration.
To run the automated dotfiles-install script for Ubuntu or macOS, choose either:
- Install with Git
git clone https://github.com/MarkHershey/dotfiles.git && \
cd dotfiles && \
./install
- Install without Git
bash -c "$(curl -fsSL https://raw.githubusercontent.com/MarkHershey/dotfiles/master/curl_install)"
Alternatively, clone this repo and make it your own.
git clone https://github.com/MarkHershey/dotfiles.git && \
cd dotfiles && \
rm -rf .git && \
git init
- Understand the scripts before you run it, modify it accordingly to suit your own needs.
- You should definitely modify the files that contain personal/regional information, such as:
git/gitconfig
contains git user information.macos/macOS_custom_setup.sh
Line 105-115 contains language & timezone settings for macOS.
Optionally, if you are not sure if the script will deliver what you wanted, you can try the setup in a Docker container.
-
Build image from source
git clone https://github.com/MarkHershey/dotfiles.git && \ cd dotfiles && \ docker build -t ubuntu-dev .
Then, run the local image
docker run -it ubuntu-dev
- Automate Custom Keybindings for Ubuntu. Reference
Copyright (c) 2020-2023 Mark Huang - MIT LICENSE