https://github.com/masterkale/dotfiles
Config files and setup scripts
https://github.com/masterkale/dotfiles
Last synced: about 1 year ago
JSON representation
Config files and setup scripts
- Host: GitHub
- URL: https://github.com/masterkale/dotfiles
- Owner: MasterKale
- Created: 2018-08-29T15:02:32.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2024-11-04T05:14:23.000Z (over 1 year ago)
- Last Synced: 2025-03-31T14:21:22.766Z (about 1 year ago)
- Language: Shell
- Size: 70.3 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# dotfiles
Config files to maintain UX across devices, and setup scripts to simplify initial setup of new machines. What's not to love?
## ⚠️ PLEASE READ BEFORE PROCEEDING: ️⚠️
If you will be running the macOS setup script, then you _must_ install **Xcode via the App Store** beforehand.
Additionally, on macOS Mojave you _may_ run into issues with Homebrew attempting to install Xcode's commandline tools but failing to do so because of something like:
> An update is not available on the server
To get around this, manually download and run the Command Line Tools installer from Apple's developer site:
https://download.developer.apple.com/Developer_Tools/Command_Line_Tools_macOS_10.14_for_Xcode_10/Command_Line_Tools_macOS_10.14_for_Xcode_10.dmg
This may not be an issue for future macOS or Xcode releases.
## Instructions
1. Clone this repo into **~**:
```sh
$> cd ~
$> git clone https://github.com/MasterKale/dotfiles
```
2. Navigate to the **~/dotfiles/** folder:
```sh
$> cd ~/dotfiles
```
2. Run whatever **setup_[os-here].sh** script is appropriate for the OS being configured.
## Manually linking individual dotfiles
If it's preferable to manually move a dotfile into place, opt for a **symbolic link** instead of a copy->paste.
For example, to move the **.zshrc** file into its rightful place in **~**, run the following:
```sh
$> ln -sv "$HOME/dotfiles/.zshrc" $HOME
```
Alternatively, you can run **add_symlinks.sh** to automate things:
```sh
$> source add_symlinks.sh
```
## Miscellaneous Notes
### Benchmarking ZSH/Bash/etc... startup times
I was troubleshooting some slowness in ZSH startup when I came across this handy command:
```sh
$> for i in $(seq 1 10); do /usr/bin/time $SHELL -i -c exit; done
```
This command will log the amount of time it takes to initialize the shell 10 times:
```
0.29 real 0.16 user 0.11 sys
0.28 real 0.16 user 0.10 sys
0.28 real 0.16 user 0.10 sys
0.28 real 0.16 user 0.10 sys
0.32 real 0.17 user 0.11 sys
0.30 real 0.17 user 0.11 sys
0.28 real 0.16 user 0.10 sys
0.28 real 0.16 user 0.10 sys
0.28 real 0.16 user 0.10 sys
0.29 real 0.16 user 0.10 sys
```