Skip to content

remykarem/computer-setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 

Repository files navigation

Setup

  • Shell: zsh

  • Terminal emulator: iTerm2

    For natural text navigation, go to Preferences. Profiles > Keys > Key Mappings > Presets and click Natural Text Editing

  • Fonts: FiraCode Nerd Font

  • Package manager: brew

  • Git - Install with Xcode

  • CMake

    brew install cmake
  • Git commit signing using GPG:

    # Assumes homebrew and existing key-pair
    brew install pinentry-mac
    # Get the secret key value
    gpg2 --list-secret-keys | grep ^sec
    git config --global user.signingkey {secret-value}
    git config --global gpg.program $(which gpg)
    # Sign everything by default
    git config --global commit.gpgsign true
    echo "no-tty" >> ~/.gnupg/gpg.conf
    echo $(which pinentry-mac) >> ~/.gnupg/gpg-agent.conf

    Taken from Signing Commits in Git. To use with IntelliJ, see here. GitHub docs here.

  • OpenSSL 3.*

  • AWS

    brew install awscli

    ~/.aws/credentials

    [some-profile-name]

    ~/.aws/config

    [default]
    region = ap-southeast-1

    Set default profile in the export AWS_PROFILE=...

Existing Replacement
cat bat
vim nvim (Neovim)
(?) tldr
(Finder) broot
ls lsd
grep ripgrep
jq jless
(?) yq
find fd
(search) fzf

nvim config (~/.config/nvim/init.vim):

set number

bat config (~/.config/bat/config, found from bat --config-file):

# No need all those line numbers
--style plain

SSH config

For connecting to GitHub via SSH

Host github.com
   IdentityFile ~/.ssh/my_private_key

Shell aliases

~/.config/fish/config.fish for fish

fish:

starship init fish | source

set -gx PATH "$HOME/.cargo/bin" $PATH

set PATH $HOME/.jenv/bin $PATH
status --is-interactive; and jenv init - | source

alias g=git

Docker

Colima

brew install colima
brew install docker
brew install docker-compose

https://formulae.brew.sh/formula/docker-compose https://stackoverflow.com/a/74413229/4570466

Docker Desktop

Languages

Java

Java SDKs are stored in ~/Library/Java/JavaVirtualMachines or /Library/Java/JavaVirtualMachines.

/usr/bin/java looks for JAVA_HOME. Otherwise it will look for the JDK with the highest version.

Note that not all Java installations are full-featured. Some installations offer only runtime environment. Other have the development features eg. keytool to update the trust store.

Download different JDKs:

  • Manually
  • via IntelliJ
  • brew — eg. brew install openjdk@11

Utils

  • /usr/libexec/java_home to get the list of java versions

Env manager

  • Set JAVA_HOME environment variable
  • jenv

Auto switch to env based on proj

Rust

https://www.rust-lang.org/tools/install

[net]
git-fetch-with-cli = true

Node

Download node via NVM (Homebrew)

Auto switch to env based on proj with this SO post.

Python

Poetry

brew install poetry and hope that it's in your PATH.

Anaconda

  • Install anaconda
  • conda create <env-name> python=3.10
  • conda install jupyter ipython nb_conda_kernels

Crontab

Add crons at by runinng the crontab -e command.

29 9 * * * open -a "Google Chrome" "???"
 0 * * * * osascript -e 'display notification "Lorem ipsum dolor sit amet" with title "Title" sound name "Frog"'

Aliases and env variables

~/.gitconfig

[alias]
f = fetch
co = checkout
br = branch
lg = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(white)%s%C(reset) %C(dim white)- %an%C(reset)%C(bold yellow)%d%C(reset)' --all

[init]
defaultBranch = main
  
[push]
autoSetupRemote = true  # no more git push -u origin main stuff

Applications

  • Rectangle
  • Raycast
  • Maccy
  • Postman
  • Proxyman
  • TablePlus
  • Cloudflare Warp
  • VS Code
  • IntelliJ
  • zbar, qrencode
  • 1Password
  • coreutils (it has many stuff like basenc)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages