From ce3a0e5c011b043aa4c65027ed3c0d2ff08d4163 Mon Sep 17 00:00:00 2001 From: Eric Renfro Date: Mon, 25 Dec 2023 13:15:18 -0500 Subject: [PATCH] Added run_once commands and fzf for micro setup --- dot_config/private_fish/functions/fzf.fish.tmpl | 11 +++++++++++ dot_config/run_once_after_00_init.sh.tmpl | 13 +++++++++++++ dot_config/run_once_after_10_fisher.sh.tmpl | 6 ++++++ 3 files changed, 30 insertions(+) create mode 100644 dot_config/private_fish/functions/fzf.fish.tmpl create mode 100644 dot_config/run_once_after_00_init.sh.tmpl create mode 100644 dot_config/run_once_after_10_fisher.sh.tmpl diff --git a/dot_config/private_fish/functions/fzf.fish.tmpl b/dot_config/private_fish/functions/fzf.fish.tmpl new file mode 100644 index 0000000..cc0d857 --- /dev/null +++ b/dot_config/private_fish/functions/fzf.fish.tmpl @@ -0,0 +1,11 @@ +function fzf + set -l epoch (date "+%s") + set -l file_path $TMPDIR/fzf-$epoch.result + command fzf $argv >$file_path + if test $status -eq 0 -a -s $file_path + cat $file_path + end + if test -e $file_path + rm $file_path + end +end diff --git a/dot_config/run_once_after_00_init.sh.tmpl b/dot_config/run_once_after_00_init.sh.tmpl new file mode 100644 index 0000000..9418302 --- /dev/null +++ b/dot_config/run_once_after_00_init.sh.tmpl @@ -0,0 +1,13 @@ +# Install micro plugins +if [ ! -d ~/.config/micro ]; then +if type -q micro; then + #micro -plugin install comment + micro -plugin install fish + micro -plugin install fzf + micro -plugin install editorconfig + micro -plugin install gotham-colors + #set colorscheme gotham + micro -plugin install filemanager + micro -plugin install nordcolors + #set colorscheme nordcolors +end diff --git a/dot_config/run_once_after_10_fisher.sh.tmpl b/dot_config/run_once_after_10_fisher.sh.tmpl new file mode 100644 index 0000000..baa2967 --- /dev/null +++ b/dot_config/run_once_after_10_fisher.sh.tmpl @@ -0,0 +1,6 @@ +type fisher &>/dev/null || curl -sL https://git.io/fisher | source && fisher install jorgebucarana/fisher +fisher install danhper/fish-ssh-agent +fisher install decors/fish-colored-man +fisher install jorgebucaran/fisher +fisher install patrickf3139/fzf.fish +fisher install kidonng/zoxide.fish