AutoYADM commit: 2025-04-30 18:15:05
This commit is contained in:
parent
27dc9d5484
commit
6abfbb7f95
5 changed files with 1304 additions and 13 deletions
3
.config/fish/completions/update.fish
Normal file
3
.config/fish/completions/update.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
complete -c update -s h -l help -d 'Print help'
|
||||
complete -c update -s y -l no-confirm -d 'No confirmation'
|
||||
complete -c update -s o -l one-term -d 'Force single terminal'
|
1211
.config/fish/conf.d/bin/bin/git-forgit
Executable file
1211
.config/fish/conf.d/bin/bin/git-forgit
Executable file
File diff suppressed because it is too large
Load diff
|
@ -10,5 +10,6 @@ paldepind/projectdo
|
|||
wfxr/forgit
|
||||
jorgebucaran/nvm.fish
|
||||
danhper/fish-ssh-agent
|
||||
~ficd/update.fish
|
||||
~ficd/fisher
|
||||
~ficd/jrnl.fish
|
||||
|
|
|
@ -6,20 +6,21 @@ SETUVAR Z_DATA_DIR:/home/fic/\x2elocal/share/z
|
|||
SETUVAR __fish_initialized:3800
|
||||
SETUVAR _fisher__7E_ficd_2F_fisher_files:/home/fic/\x2econfig/fish/functions/fisher\x2efish\x1e/home/fic/\x2econfig/fish/completions/fisher\x2efish
|
||||
SETUVAR _fisher__7E_ficd_2F_jrnl_2E_fish_files:/home/fic/\x2econfig/fish/functions/jrnl\x2efish\x1e/home/fic/\x2econfig/fish/completions/jrnl\x2efish
|
||||
SETUVAR _fisher_danhper_2F_fish_2D_ssh_2D_agent_files:\x7e/\x2econfig/fish/functions/__ssh_agent_is_started\x2efish\x1e\x7e/\x2econfig/fish/functions/__ssh_agent_start\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/fish\x2dssh\x2dagent\x2efish
|
||||
SETUVAR _fisher_franciscolourenco_2F_done_files:\x7e/\x2econfig/fish/conf\x2ed/done\x2efish
|
||||
SETUVAR _fisher_jorgebucaran_2F_autopair_2E_fish_files:\x7e/\x2econfig/fish/functions/_autopair_backspace\x2efish\x1e\x7e/\x2econfig/fish/functions/_autopair_insert_left\x2efish\x1e\x7e/\x2econfig/fish/functions/_autopair_insert_right\x2efish\x1e\x7e/\x2econfig/fish/functions/_autopair_insert_same\x2efish\x1e\x7e/\x2econfig/fish/functions/_autopair_tab\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/autopair\x2efish
|
||||
SETUVAR _fisher_jorgebucaran_2F_nvm_2E_fish_files:\x7e/\x2econfig/fish/functions/_nvm_index_update\x2efish\x1e\x7e/\x2econfig/fish/functions/_nvm_list\x2efish\x1e\x7e/\x2econfig/fish/functions/_nvm_version_activate\x2efish\x1e\x7e/\x2econfig/fish/functions/_nvm_version_deactivate\x2efish\x1e\x7e/\x2econfig/fish/functions/nvm\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/nvm\x2efish\x1e\x7e/\x2econfig/fish/completions/nvm\x2efish
|
||||
SETUVAR _fisher_jorgebucaran_2F_replay_2E_fish_files:\x7e/\x2econfig/fish/functions/replay\x2efish\x1e\x7e/\x2econfig/fish/completions/replay\x2efish
|
||||
SETUVAR _fisher_jorgebucaran_2F_spark_2E_fish_files:\x7e/\x2econfig/fish/functions/spark\x2efish\x1e\x7e/\x2econfig/fish/completions/spark\x2efish
|
||||
SETUVAR _fisher_joseluisq_2F_gitnow_40_32_2E_31_32_2E_30__files:\x7e/\x2econfig/fish/functions/__gitnow_check_if_branch_exist\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_clone_msg\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_clone_params\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_clone_repo\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_current_branch_list\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_current_branch_name\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_current_remote\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_get_clip_program\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_get_latest_semver_release_tag\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_get_latest_tag\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_get_tags_ordered\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_get_valid_semver_prerelease_value\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_get_valid_semver_release_value\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_gitflow_branch\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_has_uncommited_changes\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_increment_number\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_is_git_repository\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_is_number\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_load_config\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_load_git_functions\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_manual\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_msg_not_valid_repository\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_new_branch_switch\x2efish\x1e\x7e/\x2econfig/fish/functions/__gitnow_slugify\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/gitnow\x2efish\x1e\x7e/\x2econfig/fish/completions/merge\x2efish\x1e\x7e/\x2econfig/fish/completions/move\x2efish\x1e\x7e/\x2econfig/fish/completions/tag\x2efish
|
||||
SETUVAR _fisher_meaningful_2D_ooo_2F_sponge_files:\x7e/\x2econfig/fish/functions/_sponge_clear_state\x2efish\x1e\x7e/\x2econfig/fish/functions/_sponge_on_exit\x2efish\x1e\x7e/\x2econfig/fish/functions/_sponge_on_postexec\x2efish\x1e\x7e/\x2econfig/fish/functions/_sponge_on_preexec\x2efish\x1e\x7e/\x2econfig/fish/functions/_sponge_on_prompt\x2efish\x1e\x7e/\x2econfig/fish/functions/_sponge_remove_from_history\x2efish\x1e\x7e/\x2econfig/fish/functions/sponge_filter_failed\x2efish\x1e\x7e/\x2econfig/fish/functions/sponge_filter_matched\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/sponge\x2efish
|
||||
SETUVAR _fisher_nickeb96_2F_puffer_2D_fish_files:\x7e/\x2econfig/fish/functions/_puffer_fish_expand_bang\x2efish\x1e\x7e/\x2econfig/fish/functions/_puffer_fish_expand_dots\x2efish\x1e\x7e/\x2econfig/fish/functions/_puffer_fish_expand_lastarg\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/puffer_fish_key_bindings\x2efish
|
||||
SETUVAR _fisher_paldepind_2F_projectdo_files:\x7e/\x2econfig/fish/functions/projectdo_build\x2efish\x1e\x7e/\x2econfig/fish/functions/projectdo_run\x2efish\x1e\x7e/\x2econfig/fish/functions/projectdo_test\x2efish\x1e\x7e/\x2econfig/fish/functions/projectdo_tool\x2efish\x1e\x7e/\x2econfig/fish/completions/projectdo\x2efish
|
||||
SETUVAR _fisher_patrickf1_2F_fzf_2E_fish_files:\x7e/\x2econfig/fish/functions/_fzf_configure_bindings_help\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_extract_var_info\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_preview_changed_file\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_preview_file\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_report_diff_type\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_report_file_type\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_directory\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_git_log\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_git_status\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_history\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_processes\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_search_variables\x2efish\x1e\x7e/\x2econfig/fish/functions/_fzf_wrapper\x2efish\x1e\x7e/\x2econfig/fish/functions/fzf_configure_bindings\x2efish\x1e\x7e/\x2econfig/fish/conf\x2ed/fzf\x2efish\x1e\x7e/\x2econfig/fish/completions/fzf_configure_bindings\x2efish
|
||||
SETUVAR _fisher_plugins:patrickf1/fzf\x2efish\x1efranciscolourenco/done\x1ejorgebucaran/replay\x2efish\x1ejorgebucaran/spark\x2efish\x1ejoseluisq/gitnow\x402\x2e12\x2e0\x1emeaningful\x2dooo/sponge\x1ejorgebucaran/autopair\x2efish\x1enickeb96/puffer\x2dfish\x1epaldepind/projectdo\x1ewfxr/forgit\x1ejorgebucaran/nvm\x2efish\x1edanhper/fish\x2dssh\x2dagent\x1e\x7eficd/fisher\x1e\x7eficd/jrnl\x2efish
|
||||
SETUVAR _fisher__7E_ficd_2F_update_2E_fish_files:/home/fic/\x2econfig/fish/functions/update\x2efish\x1e/home/fic/\x2econfig/fish/completions/update\x2efish
|
||||
SETUVAR _fisher_danhper_2F_fish_2D_ssh_2D_agent_files:/home/fic/\x2econfig/fish/functions/__ssh_agent_is_started\x2efish\x1e/home/fic/\x2econfig/fish/functions/__ssh_agent_start\x2efish\x1e/home/fic/\x2econfig/fish/conf\x2ed/fish\x2dssh\x2dagent\x2efish
|
||||
SETUVAR _fisher_franciscolourenco_2F_done_files:/home/fic/\x2econfig/fish/conf\x2ed/done\x2efish
|
||||
SETUVAR _fisher_jorgebucaran_2F_autopair_2E_fish_files:/home/fic/\x2econfig/fish/functions/_autopair_backspace\x2efish\x1e/home/fic/\x2econfig/fish/functions/_autopair_insert_left\x2efish\x1e/home/fic/\x2econfig/fish/functions/_autopair_insert_right\x2efish\x1e/home/fic/\x2econfig/fish/functions/_autopair_insert_same\x2efish\x1e/home/fic/\x2econfig/fish/functions/_autopair_tab\x2efish\x1e/home/fic/\x2econfig/fish/conf\x2ed/autopair\x2efish
|
||||
SETUVAR _fisher_jorgebucaran_2F_nvm_2E_fish_files:/home/fic/\x2econfig/fish/functions/_nvm_index_update\x2efish\x1e/home/fic/\x2econfig/fish/functions/_nvm_list\x2efish\x1e/home/fic/\x2econfig/fish/functions/_nvm_version_activate\x2efish\x1e/home/fic/\x2econfig/fish/functions/_nvm_version_deactivate\x2efish\x1e/home/fic/\x2econfig/fish/functions/nvm\x2efish\x1e/home/fic/\x2econfig/fish/conf\x2ed/nvm\x2efish\x1e/home/fic/\x2econfig/fish/completions/nvm\x2efish
|
||||
SETUVAR _fisher_jorgebucaran_2F_replay_2E_fish_files:/home/fic/\x2econfig/fish/functions/replay\x2efish\x1e/home/fic/\x2econfig/fish/completions/replay\x2efish
|
||||
SETUVAR _fisher_jorgebucaran_2F_spark_2E_fish_files:/home/fic/\x2econfig/fish/functions/spark\x2efish\x1e/home/fic/\x2econfig/fish/completions/spark\x2efish
|
||||
SETUVAR _fisher_joseluisq_2F_gitnow_40_32_2E_31_32_2E_30__files:/home/fic/\x2econfig/fish/functions/__gitnow_check_if_branch_exist\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_clone_msg\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_clone_params\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_clone_repo\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_current_branch_list\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_current_branch_name\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_current_remote\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_get_clip_program\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_get_latest_semver_release_tag\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_get_latest_tag\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_get_tags_ordered\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_get_valid_semver_prerelease_value\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_get_valid_semver_release_value\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_gitflow_branch\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_has_uncommited_changes\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_increment_number\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_is_git_repository\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_is_number\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_load_config\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_load_git_functions\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_manual\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_msg_not_valid_repository\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_new_branch_switch\x2efish\x1e/home/fic/\x2econfig/fish/functions/__gitnow_slugify\x2efish\x1e/home/fic/\x2econfig/fish/conf\x2ed/gitnow\x2efish\x1e/home/fic/\x2econfig/fish/completions/merge\x2efish\x1e/home/fic/\x2econfig/fish/completions/move\x2efish\x1e/home/fic/\x2econfig/fish/completions/tag\x2efish
|
||||
SETUVAR _fisher_meaningful_2D_ooo_2F_sponge_files:/home/fic/\x2econfig/fish/functions/_sponge_clear_state\x2efish\x1e/home/fic/\x2econfig/fish/functions/_sponge_on_exit\x2efish\x1e/home/fic/\x2econfig/fish/functions/_sponge_on_postexec\x2efish\x1e/home/fic/\x2econfig/fish/functions/_sponge_on_preexec\x2efish\x1e/home/fic/\x2econfig/fish/functions/_sponge_on_prompt\x2efish\x1e/home/fic/\x2econfig/fish/functions/_sponge_remove_from_history\x2efish\x1e/home/fic/\x2econfig/fish/functions/sponge_filter_failed\x2efish\x1e/home/fic/\x2econfig/fish/functions/sponge_filter_matched\x2efish\x1e/home/fic/\x2econfig/fish/conf\x2ed/sponge\x2efish
|
||||
SETUVAR _fisher_nickeb96_2F_puffer_2D_fish_files:/home/fic/\x2econfig/fish/functions/_puffer_fish_expand_bang\x2efish\x1e/home/fic/\x2econfig/fish/functions/_puffer_fish_expand_dots\x2efish\x1e/home/fic/\x2econfig/fish/functions/_puffer_fish_expand_lastarg\x2efish\x1e/home/fic/\x2econfig/fish/conf\x2ed/puffer_fish_key_bindings\x2efish
|
||||
SETUVAR _fisher_paldepind_2F_projectdo_files:/home/fic/\x2econfig/fish/functions/projectdo_build\x2efish\x1e/home/fic/\x2econfig/fish/functions/projectdo_run\x2efish\x1e/home/fic/\x2econfig/fish/functions/projectdo_test\x2efish\x1e/home/fic/\x2econfig/fish/functions/projectdo_tool\x2efish\x1e/home/fic/\x2econfig/fish/completions/projectdo\x2efish
|
||||
SETUVAR _fisher_patrickf1_2F_fzf_2E_fish_files:/home/fic/\x2econfig/fish/functions/_fzf_configure_bindings_help\x2efish\x1e/home/fic/\x2econfig/fish/functions/_fzf_extract_var_info\x2efish\x1e/home/fic/\x2econfig/fish/functions/_fzf_preview_changed_file\x2efish\x1e/home/fic/\x2econfig/fish/functions/_fzf_preview_file\x2efish\x1e/home/fic/\x2econfig/fish/functions/_fzf_report_diff_type\x2efish\x1e/home/fic/\x2econfig/fish/functions/_fzf_report_file_type\x2efish\x1e/home/fic/\x2econfig/fish/functions/_fzf_search_directory\x2efish\x1e/home/fic/\x2econfig/fish/functions/_fzf_search_git_log\x2efish\x1e/home/fic/\x2econfig/fish/functions/_fzf_search_git_status\x2efish\x1e/home/fic/\x2econfig/fish/functions/_fzf_search_history\x2efish\x1e/home/fic/\x2econfig/fish/functions/_fzf_search_processes\x2efish\x1e/home/fic/\x2econfig/fish/functions/_fzf_search_variables\x2efish\x1e/home/fic/\x2econfig/fish/functions/_fzf_wrapper\x2efish\x1e/home/fic/\x2econfig/fish/functions/fzf_configure_bindings\x2efish\x1e/home/fic/\x2econfig/fish/conf\x2ed/fzf\x2efish\x1e/home/fic/\x2econfig/fish/completions/fzf_configure_bindings\x2efish
|
||||
SETUVAR _fisher_plugins:patrickf1/fzf\x2efish\x1efranciscolourenco/done\x1ejorgebucaran/replay\x2efish\x1ejorgebucaran/spark\x2efish\x1ejoseluisq/gitnow\x402\x2e12\x2e0\x1emeaningful\x2dooo/sponge\x1ejorgebucaran/autopair\x2efish\x1enickeb96/puffer\x2dfish\x1epaldepind/projectdo\x1ewfxr/forgit\x1ejorgebucaran/nvm\x2efish\x1edanhper/fish\x2dssh\x2dagent\x1e\x7eficd/update\x2efish\x1e\x7eficd/fisher\x1e\x7eficd/jrnl\x2efish
|
||||
SETUVAR _fisher_upgraded_to_4_4:\x1d
|
||||
SETUVAR _fisher_wfxr_2F_forgit_files:\x7e/\x2econfig/fish/conf\x2ed/bin\x1e\x7e/\x2econfig/fish/conf\x2ed/forgit\x2eplugin\x2efish\x1e\x7e/\x2econfig/fish/completions/_git\x2dforgit\x1e\x7e/\x2econfig/fish/completions/git\x2dforgit\x2ebash\x1e\x7e/\x2econfig/fish/completions/git\x2dforgit\x2efish
|
||||
SETUVAR _fisher_wfxr_2F_forgit_files:/home/fic/\x2econfig/fish/conf\x2ed/bin\x1e/home/fic/\x2econfig/fish/conf\x2ed/forgit\x2eplugin\x2efish\x1e/home/fic/\x2econfig/fish/completions/_git\x2dforgit\x1e/home/fic/\x2econfig/fish/completions/git\x2dforgit\x2ebash\x1e/home/fic/\x2econfig/fish/completions/git\x2dforgit\x2efish
|
||||
SETUVAR abbr_path:/home/fic/\x2econfig/fish/conf\x2ed/abbr\x2efish
|
||||
SETUVAR cac_ip:172\x2e30\x2e90\x2e10
|
||||
SETUVAR fish_color_autosuggestion:89492A
|
||||
|
|
75
.config/fish/functions/update.fish
Normal file
75
.config/fish/functions/update.fish
Normal file
|
@ -0,0 +1,75 @@
|
|||
function update --description "Update everything"
|
||||
# autoconfirm
|
||||
# or force no multiterm
|
||||
argparse h/help y/no-confirm o/one-term -- $argv
|
||||
if set -ql _flag_h
|
||||
printf '%s\n' \
|
||||
'update -- update everything' \
|
||||
'Usage: run `update` to begin' \
|
||||
'Options:' \
|
||||
'-y/--no-confirm: Skip update confirmations' \
|
||||
'-o/--one-term: Force single terminal mode' \
|
||||
'-h/--help: Print this screen'
|
||||
return 0
|
||||
end
|
||||
# TODO add way for user to configure the update list?
|
||||
set -g termcmd foot fish -c
|
||||
set -l std 'cargo install-update -a
|
||||
gup update
|
||||
uv tool upgrade --all'
|
||||
set -l noconfirm 'flatpak update -y
|
||||
yes | paru -Syu'
|
||||
set -l confirm 'flatpak update
|
||||
paru -Syu'
|
||||
set -g cmds (string split \n -- $std | string trim)
|
||||
if set -q _flag_y
|
||||
set --append cmds (string split \n -- $noconfirm | string trim)
|
||||
sudo -v
|
||||
else
|
||||
set --append cmds (string split \n -- $confirm | string trim)
|
||||
end
|
||||
echo Commands to be run:
|
||||
for i in $cmds
|
||||
echo $i
|
||||
end
|
||||
|
||||
function execute
|
||||
argparse i/interactive -- $argv
|
||||
if set -ql _flag_i
|
||||
for cmd in $cmds
|
||||
# max 2 jobs at a time
|
||||
while test (count (jobs -p)) -ge 2
|
||||
sleep 0.5
|
||||
end
|
||||
if string match -q "*paru *" -- "$cmd"
|
||||
eval $cmd
|
||||
else
|
||||
$termcmd $cmd &>/dev/null &
|
||||
end
|
||||
end
|
||||
else
|
||||
for cmd in $cmds
|
||||
eval $cmd
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
if not set -ql _flag_o && isatty stdin && isatty stdout
|
||||
while read --nchars 1 -l response --prompt-str="Run on multiple terminals? (y/n)" or return 1
|
||||
switch $response
|
||||
case y Y
|
||||
execute --interactive
|
||||
wait
|
||||
break
|
||||
case n N
|
||||
execute
|
||||
break
|
||||
case '*'
|
||||
echo Invalid input!
|
||||
continue
|
||||
end
|
||||
end
|
||||
else
|
||||
execute
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue