Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,7 @@ oh-my-zsh
oh-my-zsh-custom/00-dotfiles.zsh
oh-my-zsh-custom/plugins/*
cheat/cheatsheets/community

# Sharing configs ($XDG_CONFIG_HOME)
.config
!.config/ghostty
2 changes: 1 addition & 1 deletion bin/dotfiles
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env zsh

DOTFILES="${HOME}/.dotfiles"
export DOTFILES="${HOME}/.dotfiles"
DOTFILES_REPO=${DOTFILES_REPO:-codfish/dotfiles}
DOTFILES_TARBALL_PATH="https://github.com/codfish/dotfiles/tarball/main"
ZSH="$HOME/.dotfiles/oh-my-zsh"
Expand Down
4 changes: 4 additions & 0 deletions cheat/cheatsheets/personal/ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ syntax: typescript
tags: [ typescript, javascript, ts, development ]
---

/* `-b` is necessary to typecheck a project with multiple composite tsconfig files */
tsc -b


/* Create a union type from the values of a js object */
/* Really good video on this: https://www.youtube.com/watch?v=6M9aZzm-kEc */
const statuses = {
Expand Down
1 change: 1 addition & 0 deletions lib/brew
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ run_brew_cask() {
[dropbox]='Dropbox'
[figma]='Figma'
[firefox]='Firefox'
[ghostty]='Ghostty'
[google-chrome]='Google Chrome'
[google-drive]='Google Drive'
[jetbrains-toolbox]='JetBrains Toolbox'
Expand Down
3 changes: 3 additions & 0 deletions oh-my-zsh-custom/02-exports.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,6 @@ export PKG_CONFIG_PATH="/opt/homebrew/opt/ruby/lib/pkgconfig"

# volta
export VOLTA_HOME="$HOME/.volta"

# https://superuser.com/questions/365847/where-should-the-xdg-config-home-variable-be-defined
export XDG_CONFIG_HOME="$DOTFILES/.config"