Add system-type filters, add git-clone handling to main script
This commit is contained in:
		@@ -2,4 +2,4 @@
 | 
			
		||||
	defaultBranch = master
 | 
			
		||||
[user]
 | 
			
		||||
	name = david
 | 
			
		||||
	email = david@silverwolf.studio
 | 
			
		||||
	email = placeholder
 | 
			
		||||
 
 | 
			
		||||
@@ -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 .
 | 
			
		||||
 
 | 
			
		||||
@@ -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"
 | 
			
		||||
 
 | 
			
		||||
@@ -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'
 | 
			
		||||
 
 | 
			
		||||
@@ -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'
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user