From c1ecaff9b55586d7b36040470392823ddee216fd Mon Sep 17 00:00:00 2001 From: Tyler Starr Date: Fri, 13 Oct 2023 22:32:38 -0700 Subject: [PATCH] Add tmuxp fzf launcher --- home/bin/executable_linux-tmuxp-launcher | 11 +++++++++++ home/dot_aliases | 12 ++++++++---- home/dot_bash_profile | 1 + 3 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 home/bin/executable_linux-tmuxp-launcher diff --git a/home/bin/executable_linux-tmuxp-launcher b/home/bin/executable_linux-tmuxp-launcher new file mode 100644 index 00000000..2c82fde0 --- /dev/null +++ b/home/bin/executable_linux-tmuxp-launcher @@ -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 diff --git a/home/dot_aliases b/home/dot_aliases index f5e67b93..88388512 100644 --- a/home/dot_aliases +++ b/home/dot_aliases @@ -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" diff --git a/home/dot_bash_profile b/home/dot_bash_profile index 63224ea0..74856049 100644 --- a/home/dot_bash_profile +++ b/home/dot_bash_profile @@ -1,3 +1,4 @@ +#!/usr/bin/env bash # https://github.com/starr-dusT/dotfiles # Load the shell dotfiles (that are available)