Sergiu’s dotfiles
These are the base dotfiles that I start with when I set up a new environment.
ssh-keygen -t rsa -b 4096 -C "sergiu.bodiu@mailnator.com"
Create local export configuration: .exports.local
export DOTFILES_DIR_PATH='/Users/add name/.dotfiles'
# Important for omzsh theme
export DEFAULT_USER='add name'
Create local git configuration: .gitconfig.local
[user]
name = 'add name'
email = 'add name@email'
## Mac Only
[credential]
helper = osxkeychain
## Windows Only https://github.com/Microsoft/Git-Credential-Manager-for-Windows
[core]
editor = 'c:/workspace/scoop/shims/code' -w
packedGitLimit = 128m
packedGitWindowSize = 128m
[credential]
helper = manager
Look for Git Submodules
eval `ssh-agent -s`
ssh-add ~/.ssh/*_rsa
git submodule update --init --recursive
You can init and update the modules separetely
git submodule init
git submodule update
How to add & remove submodules
git submodule add git://github.com/robbyrussell/oh-my-zsh.git
git submodule deinit oh-my-zsh
git rm oh-my-zsh
To install the dotfiles just run the appropriate snippet in the terminal:
(:warning: DO NOT run the setup snippet if you don't fully understand what it does. Seriously, DON'T!)
OS | Snippet |
---|---|
OS X | bash -c "$(curl -LsS https://raw.github.com/sergiubodiu/dotfiles/master/install/main.sh)" |
Ubuntu | bash -c "$(wget -qO - https://raw.github.com/sergiubodiu/dotfiles/master/install/main.sh)" |
Cygwin | bash -c "$(wget -qO - https://raw.github.com/sergiubodiu/dotfiles/master/install/main.sh)" |
curl -LsS rawgit.com/transcode-open/apt-cyg/master/apt-cyg > apt-cyg curl -LsS rawgit.com/StevenBlack/hosts/master/data/mvps.org/hosts > hosts
Read about SSH Hardening
Inspiration and code was taken from many sources, including: