Skip to content

MasterKale/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 ~:
$> cd ~
$> git clone https://github.com/MasterKale/dotfiles
  1. Navigate to the ~/dotfiles/ folder:
$> cd ~/dotfiles
  1. 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:

$> ln -sv "$HOME/dotfiles/.zshrc" $HOME

Alternatively, you can run add_symlinks.sh to automate things:

$> 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:

$> 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

About

Config files and setup scripts

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages