From 3ed22999343baaa7fb2d7f42a14e0ac7aa589488 Mon Sep 17 00:00:00 2001 From: Daylin Morgan Date: Fri, 24 Feb 2023 17:57:52 -0600 Subject: [PATCH] add wip functions --- home/private_dot_config/zsh/functions/config | 56 ++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 home/private_dot_config/zsh/functions/config diff --git a/home/private_dot_config/zsh/functions/config b/home/private_dot_config/zsh/functions/config new file mode 100644 index 0000000..14e8b52 --- /dev/null +++ b/home/private_dot_config/zsh/functions/config @@ -0,0 +1,56 @@ +#!/usr/bin/env zsh + +#? WIP config file editor + +# TODO: don't error if directory doesn't exist +# Maybe use globs? or betters substitution + +declare -a configs + +configs=( + wezterm + pdm + bat + micromamba + alacritty + rmapi + tea + chezmoi + lazygit + pip + conda + nvim + nim + glab-cli + starship + git + xplr + rclone + gtk-3.0 + zsh + gh + aconfmgr + asciinema + restic + tmux + autorandr + mangal + seqdat + vivid + eget + lsd + qmk + lazydocker + gcloud + glow +) + +setopt RC_EXPAND_PARAM +setopt EXTENDED_GLOB + +# selection=$(find ${HOME/.config/${configs}(N)} -type f -not -path '*/\.git/*' -not -path '*/__pycache__/*' | fzf -m) + +find $HOME/.config/${configs} -type f \ + -not -path '*/\.git/*' -not -path '*/__pycache__/*' | + fzf --multi --print0 | xargs -0 -o $EDITOR +