diff --git a/README.md b/README.md index 495f237..144ee6f 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ The following is a guide I wrote to guide one through a fresh installation on a new machine. Enjoy! -> [!NOTE] > [Tangled](https://tangled.org/marko.tech/fresh-install) I've moved over to Gitlab. +> [!NOTE] > [Tangled](https://tangled.org/marko.tech/fresh-install) I've moved this repo over to self hosted Tangled. Quote time: @@ -11,9 +11,9 @@ Quote time: ## Version -> `1.9.5` +> `1.9.6` -Last Tested on `MacOS 15.1` +Last Tested on `MacOS 15.7.5` ## App Store Applications @@ -28,17 +28,17 @@ Last Tested on `MacOS 15.1` ## Dotfiles -Majority of configurations are stored in my [dotfiles](https://github.com/arbitrarily/dotfiles) repository; currently a **private** repository. +Majority of configurations are stored in my private [dotfiles](https://gitlab.com/arbitrarily/dotfiles) repository; currently a **private** repository. -- [`Dotfiles`](https://github.com/arbitrarily/dotfiles) github.com/arbitrarily/dotfiles +- [`Dotfiles`](https://gitlab.com/arbitrarily/dotfiles) gitlab.com/arbitrarily/dotfiles ## Non Dotfile Settings & Configs -- [`cmus Theme`](https://github.com/arbitrarily/cmus-theme) github.com/arbitrarily/cmus-theme +- ~~[`cmus Theme`](https://github.com/arbitrarily/cmus-theme) github.com/arbitrarily/cmus-theme~~ I don't really use this anymore, but it's still available if you want to use it. ## Fonts -Fonts are Backed up to **/Dropbox/Resources** +Fonts are Backed up to **/Dropbox/Resources** and dotfiles and are installed via Homebrew. - [`Nerd Fonts`](https://github.com/ryanoasis/nerd-fonts) github.com/ryanoasis/nerd-fonts @@ -47,6 +47,16 @@ Fonts are Backed up to **/Dropbox/Resources** ```sh # Install Oh-My-zsh sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" + +# Install plugins +git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions +git clone https://github.com/zsh-users/zsh-syntax-highlighting ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting +``` + +Add to `plugins=()` in `~/.zshrc`: + +``` +plugins=(git zsh-autosuggestions zsh-syntax-highlighting) ``` ## Set Up SSH Keys @@ -55,16 +65,27 @@ sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/too ```sh # Generate SSH -ssh-keygen -t rsa -C "your_email@example.com" +ssh-keygen -t ed25519 -C "your_email@example.com" -# Copy -keys # shortcut -pbcopy < ~/.ssh/id_rsa.pub +# Add to keychain & agent +ssh-add --apple-use-keychain ~/.ssh/id_ed25519 + +# Copy public key +pbcopy < ~/.ssh/id_ed25519.pub # Test if worked ssh -T git@github.com ``` +Add to `~/.ssh/config`: + +``` +Host * + AddKeysToAgent yes + UseKeychain yes + IdentityFile ~/.ssh/id_ed25519 +``` + ## Set Up Git ```sh @@ -73,12 +94,20 @@ git config --global user.email email@email.com git config --global github.user user_name_here git config --global github.token your_token_here git config -l --global -git config --global core.editor "code ." +git config --global core.editor "zed --wait" git config --global color.ui true ``` `.gitconfig` is contained within the [dotfiles](https://github.com/arbitrarily/dotfiles) repository and contains further **Git** configurations. +### Git Commit Signing (SSH) + +```sh +git config --global gpg.format ssh +git config --global user.signingkey ~/.ssh/id_ed25519.pub +git config --global commit.gpgsign true +``` + ## Set Hostname ```sh @@ -202,6 +231,17 @@ sudo defaults write /Library/Preferences/com.apple.loginwindow LoginwindowText " ``` +### Security + +```sh +# Enable FileVault +sudo fdesetup enable + +# Enable Firewall +sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setglobalstate on +sudo /usr/libexec/ApplicationFirewall/socketfilterfw --setloggingmode on +``` + ### Siri ```sh @@ -241,14 +281,11 @@ defaults write com.apple.dock static-only -bool false ```sh # Restart Finder, Dock, and SystemUIServer killall Finder Dock SystemUIServer - ``` --- -## Install Xcode - -- [https://itunes.apple.com/au/app/xcode/id497799835?mt=12](itunes.apple.com/au/app/xcode/id497799835?mt=12) +## Install Xcode Command Line Tools ```sh xcode-select --install @@ -262,20 +299,48 @@ xcode-select --install /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" ``` +### Homebrew PATH (Apple Silicon) + +```sh +# Add to ~/.zshrc or ~/.zprofile +eval "$(/opt/homebrew/bin/brew shellenv)" +``` + ## Install Apps Via Homebrew Cask ```sh -# Install Fonts -brew tap homebrew/cask-fonts -brew install font-hack-nerd-font +# install tools +brew install awscli bat borders btop ccache cmake colordiff ddgr deno elixir eza fd ffmpeg fzf gh git go gnu-sed imagemagick jq lazygit mackup mas mdcat memcached mysql neovim nightlight nmap node nvm postgresql@14 redis ripgrep ruff rust shellcheck shfmt sketchybar skhd spicetify-cli stow stylua supabase switchaudio-osx telnet terminal-notifier tmux uv web-ext wget yabai yarn yt-dlp z zsh -# shkd -brew install koekeishiya/formulae/skhd +# install casks +brew install --cask affinity-photo apparency bitwarden calibre chromedriver discord displaylink docker docker-desktop dropbox figma font-hack-nerd-font google-chrome imageoptim kitty little-snitch lm-studio mimestream mongodb-compass obsidian qlcolorcode qlimagesize qlmarkdown qlstephen qlvideo quicklook-json quicklookase raycast spotify surfshark suspicious-package syntax-highlight the-unarchiver transmit ungoogled-chromium vlc whatsapp yaak zed zen zen-browser ``` +## Node + +```sh +# Install LTS Node via nvm +nvm install --lts +nvm use --lts +nvm alias default node +``` + +## Restore Dotfiles + +I use [Mackup](https://github.com/lra/mackup) to restore my dotfiles. + +```sh +mackup restore +``` + +## Window Managers + ```sh -# List Installed Extensions -code --list-extensions | xargs -L 1 echo code --install-extension +# Start services +yabai --start-service +skhd --start-service +brew services start sketchybar +brew services start borders ``` --- @@ -283,5 +348,6 @@ code --list-extensions | xargs -L 1 echo code --install-extension ### Marko Bajlovic - + - Based on [uses.tech](https://uses.tech), this page is a showcase of my favorite tools, software, hardware and other recommended resources. Sourced from all over and throughout the years.