curl -s https://raw.githubusercontent.com/logston/dotfiles/master/setup.sh | bash
@Logston's dev env consists of a few basic tools.
When setting up a new machine, first get few basics installed:
- If Mac, Enroll Mac in Find My Mac (sign into iCloud)
- Oh-my-zsh (and potentially zsh): https://ohmyz.sh/#install
- brew: https://brew.sh/
- Install temp GitHub SSH key.
ssh-keygen ...
- ./setup.sh from above
- Tmux Plugin Manager: https://github.com/tmux-plugins/tpm
Then running the setup script above should install the rest.
In order to sign Git commits, you'll need to create a GPG key and add these env
vars to your machine specific ~/.zsh.d/
file.
gpg --full-generate-key
Please select what kind of key you want:
(1) RSA and RSA (default)
(2) DSA and Elgamal
(3) DSA (sign only)
(4) RSA (sign only)
Your selection? 1
RSA keys may be between 1024 and 4096 bits long.
What keysize do you want? (3072) 4096
Requested keysize is 4096 bits
Please specify how long the key should be valid.
0 = key does not expire
<n> = key expires in n days
<n>w = key expires in n weeks
<n>m = key expires in n months
<n>y = key expires in n years
Key is valid for? (0)
...
# Override .gitconfig values with machine-specific values
export GIT_CONFIG_COUNT=4
export GIT_CONFIG_KEY_0=user.name
export GIT_CONFIG_VALUE_0="Paul Logston"
export GIT_CONFIG_KEY_1=user.email
export GIT_CONFIG_VALUE_1=paul.logston@
export GIT_CONFIG_KEY_2=user.signingkey
# gpg --list-keys --keyid-format LONG, use signing key with !
export GIT_CONFIG_VALUE_2=1AB00E2439AB1403!
export GIT_CONFIG_KEY_3=gpg.program
export GIT_CONFIG_VALUE_3=gpg.git
Make sure you have git >= 2.37: git --version
Set the command for terminal to run upon opening to: /opt/homebrew/bin/tmux new -A -s Default
Ensure "Option" key works as Meta: Terminal > Settings > Profiles > Keyboard > Use Option as Meta
.
Run tmux attach-session -t Default
after shelling in.
- Install Vim-plug: https://github.com/junegunn/vim-plug
- Install nvm for node and Coc:
nvm install v18.13.0
Once Hammerspoon is installed by brew
, install the Shift-It tool:
https://github.com/peterklijn/hammerspoon-shiftit
sudo tlmgr update --self
sudo tlmgr install xelatex
sudo tlmgr install algorithms
sudo tlmgr install algorithmicx
sudo tlmgr install titlesec
sudo tlmgr install tikz-qtree