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/
eval "$(/opt/homebrew/bin/brew shellenv)"
- Install temp GitHub SSH key (MUST DO THIS TO DOWNLOAD .dotfiles).
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
export OP_ITEM_ID_GPG_PASSPHRASE="< look up with op command >"
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
go install github.com/logston/toggl
- Install Toggl API key:
~/.toggl-api-key
- Create Mac shortcut via the Mac Shortcuts app.
- Receive no input from quick actions.
- Run Shell Script
/Users/logston/Code/go/bin/toggl
- Set Details
- Set "Run with:"
sudo tlmgr update --self
sudo tlmgr install adjustbox
sudo tlmgr install algorithm2e
sudo tlmgr install algorithmicx
sudo tlmgr install algorithms
sudo tlmgr install biblatex
sudo tlmgr install collection-fontsrecommended
sudo tlmgr install enumitem
sudo tlmgr install environ
sudo tlmgr install ifoddpage
sudo tlmgr install pdfcol
sudo tlmgr install relsize
sudo tlmgr install subfigure
sudo tlmgr install tcolorbox
sudo tlmgr install tikz-qtree
sudo tlmgr install titlesec
sudo tlmgr install titling
sudo tlmgr install xelatex