Add system-type filters, add git-clone handling to main script

This commit is contained in:
2025-09-06 11:05:21 -05:00
parent 891b605dbe
commit 7f287b591e
23 changed files with 182 additions and 145 deletions

View File

@@ -2,4 +2,4 @@
defaultBranch = master
[user]
name = david
email = david@silverwolf.studio
email = placeholder

View File

@@ -1,10 +1,10 @@
local omitted_dirs=(
tmux_omitted_dirs=(
$HOME
$DIR_HOME_BOX
$DIR_DEV
$DIR_GIT_PROJECTS
)
[[ ! ${omitted_dirs[(re)$(pwd)]} ]] &&
[[ ! ${tmux_omitted_dirs[(re)$(pwd)]} ]] &&
tmux new-window -d -n cmd &&
tmux rename-window $EDITOR &&
$EDITOR .

View File

@@ -7,8 +7,8 @@ export DIR_HOME_BOX="$HOME/dbox"
export DIR_MUSIC="$DIR_HOME_BOX/media/music"
export DIR_DEV="$HOME/dev"
export DIR_GIT_PROJECTS="$DIR_DEV/git"
export DIR_SCRATCH_NOTES="$DIR_HOME_BOX/life/scratchpad/notes"
export DIR_SCRATCH_DRAWINGS="$DIR_HOME_BOX/life/scratchpad/drawings"
export DIR_SCRATCH_NOTES="$DIR_HOME_BOX/scratchpad/notes"
export DIR_SCRATCH_DRAWINGS="$DIR_HOME_BOX/scratchpad/drawings"
# util dirs; do not change without checking impact on xdg base dirs
export DIR_LOCAL="$HOME/.local"

View File

@@ -16,9 +16,8 @@ alias nv='nvim'
alias n='nvim'
alias tms='tmux-session-init'
# executable name overrides
# executable overrides
alias ls='ls -F'
alias yt-dlp='yt-dlp --write-info-json'
# misc commands
alias cal='khal calendar'

View File

@@ -11,7 +11,7 @@ alias gfo='git fetch origin'
alias git-push-to-temp='git branch -D temp; git checkout -b temp; git push origin temp -uf; git checkout -'
alias gpdev='git-push-to-temp'
alias gpo='git pull origin'
git config --global user.email "$EMAIL_PERSONAL_DEV"
git config --global user.email "$EMAIL_PERSONAL_DEV" # TODO: maybe fit this into system-type filters?
# code/test/linter run and build commands
alias bel='bundle exec standardrb'