dots/scripts/fzf-tmux-tools-popup
2024-08-28 12:05:05 -04:00

17 lines
247 B
Bash
Executable file

#! /usr/bin/env bash
set -e
declare -A tools
tools[Lazygit]="lazygit"
tools[Databases]="cd ~/.local/share/db_ui; nvim -c 'DBUI'"
cli="$(printf "%s\n" "${!tools[@]}" | fzf)"
cli="${tools[$cli]}"
if [[ -z "$cli" ]]; then
exit
fi
eval "$cli"