Add tmuxp fzf launcher

This commit is contained in:
Tyler Starr 2023-10-13 22:32:38 -07:00
parent d07b735820
commit 16fb72b397
4 changed files with 26 additions and 4 deletions

View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
# https://github.com/starr-dusT/dotfiles
tmuxp_files() {
ls ~/.config/tmuxp -1
}
selected="$(tmuxp_files | sed 's/.yml//g' | sort | fzf -e -i -m --reverse --delimiter / --with-nth -1)"
[ -z "$selected" ] && exit
echo "$selected"
tmuxp load "~/.config/tmuxp/$selected.yml" -y

View File

@ -8,10 +8,8 @@ alias nu="cd ~/.local/share/chezmoi/provision && \
# sway
alias s='sway'
# tmuxinator
alias tsplat='tmuxinator start splat'
alias tdot='tmuxinator start dot'
alias ttask='tmuxinator start task'
# tmuxp
alias t='linux-tmuxp-launcher'
alias tw='linux-toggle-vpn'
@ -36,3 +34,9 @@ alias cz="cd ~/documents/zet"
alias n="nnn -r -e"
alias cp="cpg -g"
alias mv="mvg -g"
# git
alias gs="git status"
alias gc="git commit"
alias ga="git add ."
alias gd="git diff"

View File

@ -1,3 +1,4 @@
#!/usr/bin/env bash
# https://github.com/starr-dusT/dotfiles
# Load the shell dotfiles (that are available)

View File

@ -1,8 +1,14 @@
# tmuxp config for 3d modelling and printing
session_name: cad
shell_command_before:
- cmd: distrobox enter arch-box && clear
windows:
- window_name: term
panes:
- shell_command:
- cd
- clear
- window_name: cq
panes:
- shell_command: