A project of things that need to be setup to help configure a new computer
Showing hidden files on macOS
-Command
+ Shift
+ .
cd ~
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
- File is
.zshrc
located in~/
ZSH_THEME="gallois"
- Delete the existing
Downloads
folder usingsudo rm -r ~/Downloads
- Open a Finder window for the parent folder of the icloud download folder
- Drag the
Downloads
folder to a Terminal window to get the properly escaped path - Create a new redirect using the following command but verify that the path for the iCloud folder is correct
sudo ln -s /Users/michaeldanko/Library/Mobile\ Documents/com\~apple\~CloudDocs/Downloads ~/Downloads
- Visit
https://brew.sh
to get the latest Brew version to install - Add the Brew to your PATH value within the
.zshrc
file ->:/opt/homebrew/bin/
where it's colon separated - Install Node using
brew install node
- If you have made changes to your PATH file and it has not yet been recognized, you can use
source ~/.zshrc
to reload the configurations.
- Checking for git can be done with
git --version
.
git config --global user.name "MichaelWDanko"
git config --global user.email "michaeldanko@icloud.com"
git config --global core.editor "nano"
git config --global --add --bool push.autoSetupRemote true
touch ~/.gitignore_global
open ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
# OS generated files #
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db
# Logs and databases #
*.log
*.sql
*.sqlite
# Swift Playgrounds
timeline.xctimeline
playground.xcworkspace
# Xcode user settings
xcuserdata/
- Create a new SSH key using the email below as a label.
- When prompted, confirm the default file position to save it.
ssh-keygen -t ed25519 -C "michaeldanko@icloud.com"
- Start the ssh-agent in the background
eval "$(ssh-agent -s)"
- Check to see if the config exists
open ~/.ssh/config
- If the config doesn't exist, create it and then added the following content
touch ~/.ssh/config
Host *
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_ed25519
ssh-add --apple-use-keychain ~/.ssh/id_ed25519
- Navigate to the GitHub profile settings (https://github.com/settings/profile)
- Click to add a new SSH key and upload the contents of the public key that can be located in
~/.ssh
gpg --list-secret-keys --keyid-format=long
/Users/michaeldanko/.gnupg/pubring.kbx
--------------------------------------
sec rsa4096/1843A5F930706B28 2022-07-16 [SC]
AE7BD7C07AACF01098073E4C1843A5F930706B28
uid [ultimate] Michael Danko (MD - michaeldanko@icloud.com) <michaeldanko@icloud.com>
ssb rsa4096/3A260E8B789BD1DA 2022-07-16 [E]
- Download the GPG Suite (will help prevent from having to enter GPG passphrase every time)
gpg --full-generate-key
- Continue with the prompts but choose a bit size of
4096
- Provide the email of a verified email in github
gpg --armor --export <key_id>
(Would be1843A5F930706B28
from example above)- Copy and paste the entire public key starting with the section that is
-----BEGIN PGP PUBLIC KEY BLOCK-----
and also copy the same part that is-----ENDS...
- Paste this into GitHub
git config --global commit.gpgsign true
git config --global user.signingkey <key_id>