Refactor/reorg various files and references

This commit is contained in:
david 2025-04-04 16:55:39 -05:00
parent 36c10758b1
commit 42f9167958
10 changed files with 11 additions and 29 deletions

View File

@ -29,7 +29,6 @@ copy_dir src_files/.config $XDG_CONFIG_HOME
copy_dir src_files/.local $DIR_LOCAL
copy_file src_files/.config/zsh/.zshenv $HOME # duplicate, copy anyway, ensures $ZDOTDIR
# copy_file src_files/.config/vim/.vimrc $HOME # copy to $HOME if need to use vim
# on macos, handle sim-linking to gimp config since gimp defaults to app-support
if [[ "$BOX_SETUP_OS" = "macos" ]]; then

View File

@ -26,9 +26,9 @@ bind-key W kill-session # TODO: if i can combine this into the above when only 1
# custom find and switching for sessions using tmux-sessionizer
unbind-key f
bind-key f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
bind-key F run-shell "tmux neww ~/.local/bin/tmux-sessionizer existing"
bind-key H run-shell "tmux neww ~/.local/bin/tmux-sessionizer hub"
bind-key f run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer"
bind-key F run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer existing"
bind-key H run-shell "tmux neww $DIR_SCRIPTS/tmux-sessionizer hub"
# bind -r D neww -c "#{pane_current_path}" "[[ -e TODO.md ]] && $EDITOR TODO.md || $EDITOR ~/personal/dev/todo.md"

View File

@ -0,0 +1,3 @@
plugins, git repos for ref, clone in this dir if needed
git clone https://github.com/ghifarit53/tokyonight-vim.git
git clone https://github.com/leafgarland/typescript-vim.git

View File

@ -1,29 +1,13 @@
" base settings
set nocompatible
let mapleader=","
" plugin manager and plugin list
filetype off
set rtp+=$XDG_CONFIG_HOME/vim/plugins/Vundle.vim
call vundle#begin('$XDG_CONFIG_HOME/vim/plugins')
Plugin 'VundleVim/Vundle.vim'
" language-specific
Plugin 'leafgarland/typescript-vim'
" themes
Plugin 'rose-pine/vim'
Plugin 'ghifarit53/tokyonight-vim'
call vundle#end()
filetype plugin on " or plugin indent on ?
set runtimepath+=$XDG_CONFIG_HOME/vim
" plugin config
let g:netrw_banner=0 " hide banner
let g:netrw_browse_split=0 " <cr> opens in same window
let g:netrw_liststyle=3 " listing style: tree
let g:netrw_list_hide= '.*\.swp$'
" let g:netrw_list_hide.=netrw_gitignore#Hide()
" TODO add toggle to exaand/collapse whole tree
let g:typescript_indent_disable = 1
@ -37,9 +21,6 @@ func! ToggleTabMode()
endif
endfunc
" TODO add function (or something) similar to gf, but clear the buffer in
" which it is run (idea is to use this with results of grep in blank pane)
" copy & paste: registers, clipboard
set clipboard+=unnamed " TODO or maybe unamedplus?
@ -47,7 +28,6 @@ set clipboard+=unnamed " TODO or maybe unamedplus?
"set background=light
let g:tokyonight_style = 'night' " available: night, storm
colorscheme tokyonight
" colorscheme rosepine_moon
" measurements, numbers, visual/audible cues
set cursorline

View File

@ -29,8 +29,8 @@ alias shrug='echo "¯\\_(ツ)_/¯"'
# source extensions and system-specific files
[[ -e "$HOME/.profile" ]] && source "$HOME/.profile" # TODO: do i want to source .profile?
[[ -a "$ZDOTDIR/.zsh-life-system" ]] && source "$ZDOTDIR/.zsh-life-system"
[[ -a "$ZDOTDIR/.zsh-job-rs" ]] && source "$ZDOTDIR/.zsh-job-rs"
[[ -a "$ZDOTDIR/zsh-life-system" ]] && source "$ZDOTDIR/zsh-life-system"
[[ -a "$ZDOTDIR/zsh-job-rs" ]] && source "$ZDOTDIR/zsh-job-rs"
# TODO: refactor the below; simplify or at least move elsewhere
alias lintjs='npx prettier --write'

View File

@ -5,9 +5,9 @@ switch_to() {
}
hydrate() {
local tmux_hydrate_path="$HOME/.local/bin/.tmux-session-hydrate-default"
local tmux_hydrate_path="$DIR_SCRIPTS/.tmux-session-hydrate-default"
[[ -f $2/.tmux-session-hydrate ]] && tmux_hydrate_path="$2/.tmux-session-hydrate"
# TODO: add special case: [[ "$1" = "hub" ]] && tmux_hydrate_path="$HOME/.local/bin/.tmux-session-hydrate-hub"
# TODO: add special case: [[ "$1" = "hub" ]] && tmux_hydrate_path="$DIR_SCRIPTS/.tmux-session-hydrate-hub"
[[ -f $tmux_hydrate_path ]] && tmux send-keys -t $1 "source $tmux_hydrate_path" c-M
}