Move copy targets into directory; add tmux sessionizer

This commit is contained in:
2025-01-15 00:44:24 -06:00
parent 7895820b33
commit 2789694833
10 changed files with 81 additions and 13 deletions

View File

@@ -0,0 +1 @@
print("print from init.lua file")

View File

@@ -0,0 +1,27 @@
# set -g default-terminal "tmux-255color" # TODO: messes up backspace render, fix
set -s escape-time 0
unbind C-b
set-option -g prefix C-a
bind-key C-a send-prefix
set -g status-style 'bg=#111111 fg=#22cc00'
set -g base-index 1
# vim-like movement stuff
set-window-option -g mode-keys vi
bind -T copy-mode-vi v send-keys -X begin-selection
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard'
bind -r ^ last-window
bind -r k select-pane -U
bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
# reload tmux.conf
bind r source-file "~/.config/tmux/tmux.conf" \; display-message "tmux.conf reloaded"
# use tmux-sessionizer in place of f find
bind-key -r f run-shell "tmux neww ~/.local/bin/tmux-sessionizer"
# bind -r D neww -c "#{pane_current_path}" "[[ -e TODO.md ]] && nvim TODO.md || nvim ~/personal/dev/todo.md"

View File

@@ -0,0 +1,26 @@
# set env vars, path updates, etc
[[ -a $HOME/.rs-vars ]] \
&& source $HOME/.rs-vars \
&& export PATH=$PATH:$HOME/.rd/bin \
&& . /usr/local/opt/asdf/libexec/asdf.sh
# login shortcuts
alias assume="source assume"
alias login-bunk='aws sso login --profile'
alias login-bunk-id-list="grep sso_account_id $HOME/.aws/config"
alias login-pulumi-bunk='pulumi login '$PULUMI_LOGIN_TARGET'$(aws sts get-caller-identity --query Account --output text)'
# git stuff
alias git-push-to-develop='git branch -D develop; git checkout -b develop; git push origin develop -uf; git checkout -'
alias gpdev='git-push-to-develop'
# misc shortcuts
alias journal="cd $HOMEBOX; $EDITOR .current-journal"
alias kra="cd $HOMEBOX/process/kra; open .current_kra"
alias gll="cd $DEVDIR/git/lampo/gitlab"
alias bet='bundle exec rspec'
alias bel='bundle exec standardrb'
alias belr='bundle exec rubocop'
alias prt='poetry run pytest'
alias prl='poetry run black'

View File

@@ -0,0 +1,7 @@
# life system shortcuts
alias life-system='cd ~/dbox/life/system; clear; ls'
alias goals='clear; sed -n 2,7p ~/dbox/life/system/direction/goals/current-goals.txt'
alias note='cd ~/dbox/life/system/tasks/inbox; vim'
alias todo='cd ~/dbox/life/system/tasks; vim +5 todo.txt'
alias budget="open ~/dbox/life/finance/budget/.current"