machineconfig 7.50__py3-none-any.whl → 8.12__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of machineconfig might be problematic. Click here for more details.
- machineconfig/cluster/remote/cloud_manager.py +1 -1
- machineconfig/cluster/sessions_managers/utils/maker.py +23 -11
- machineconfig/cluster/sessions_managers/wt_local_manager.py +22 -19
- machineconfig/cluster/sessions_managers/wt_remote_manager.py +3 -1
- machineconfig/cluster/sessions_managers/zellij_local_manager.py +3 -1
- machineconfig/cluster/sessions_managers/zellij_remote_manager.py +3 -2
- machineconfig/cluster/sessions_managers/zellij_utils/process_monitor.py +2 -2
- machineconfig/jobs/installer/installer_data.json +1185 -165
- machineconfig/jobs/installer/linux_scripts/q.sh +10 -7
- machineconfig/jobs/installer/linux_scripts/redis.sh +1 -0
- machineconfig/jobs/installer/package_groups.py +52 -84
- machineconfig/jobs/installer/powershell_scripts/install_fonts.ps1 +129 -34
- machineconfig/jobs/installer/{custom → python_scripts}/boxes.py +2 -2
- machineconfig/jobs/installer/{custom_dev → python_scripts}/brave.py +5 -3
- machineconfig/jobs/installer/python_scripts/cloudflare_warp_cli.py +23 -0
- machineconfig/jobs/installer/{custom_dev → python_scripts}/code.py +4 -1
- machineconfig/jobs/installer/{custom_dev → python_scripts}/dubdb_adbc.py +1 -1
- machineconfig/jobs/installer/{custom → python_scripts}/hx.py +16 -12
- machineconfig/jobs/installer/{custom_dev → python_scripts}/nerdfont.py +2 -2
- machineconfig/jobs/installer/{custom_dev → python_scripts}/nerfont_windows_helper.py +27 -22
- machineconfig/jobs/installer/python_scripts/sysabc.py +139 -0
- machineconfig/jobs/installer/{custom_dev → python_scripts}/wezterm.py +2 -19
- machineconfig/jobs/installer/{custom_dev → python_scripts}/winget.py +10 -14
- machineconfig/jobs/installer/python_scripts/yazi.py +121 -0
- machineconfig/{scripts/python/nw → jobs/scripts/bash_scripts}/mount_nfs +0 -1
- machineconfig/jobs/scripts/powershell_scripts/mount_ssh.ps1 +13 -0
- machineconfig/jobs/scripts/powershell_scripts/obs.ps1 +4 -0
- machineconfig/jobs/scripts_dynamic/a.py +25 -0
- machineconfig/logger.py +0 -1
- machineconfig/profile/create_helper.py +21 -22
- machineconfig/profile/create_links_export.py +25 -11
- machineconfig/profile/create_shell_profile.py +14 -3
- machineconfig/profile/mapper.toml +8 -6
- machineconfig/scripts/__init__.py +0 -4
- machineconfig/scripts/linux/wrap_mcfg +20 -21
- machineconfig/scripts/python/agents.py +74 -50
- machineconfig/scripts/python/ai/initai.py +1 -1
- machineconfig/scripts/python/ai/scripts/command_runner.ps1 +33 -0
- machineconfig/scripts/python/ai/{command_runner → scripts}/command_runner.sh +1 -1
- machineconfig/scripts/python/ai/scripts/lint_and_type_check.sh +1 -1
- machineconfig/scripts/python/ai/solutions/copilot/{chatmodes/Thinking-Beast-Mode.chatmode.md → agents/Thinking-Beast-Mode.agent.md} +0 -1
- machineconfig/scripts/python/ai/solutions/copilot/{chatmodes/Ultimate-Transparent-Thinking-Beast-Mode.chatmode.md → agents/Ultimate-Transparent-Thinking-Beast-Mode.agent.md} +0 -1
- machineconfig/scripts/python/ai/solutions/copilot/{chatmodes/deepResearch.chatmode.md → agents/deepResearch.agent.md} +2 -2
- machineconfig/scripts/python/ai/solutions/copilot/github_copilot.py +5 -5
- machineconfig/scripts/python/ai/solutions/copilot/instructions/python/dev.instructions.md +4 -0
- machineconfig/scripts/python/ai/solutions/copilot/instructions/python/watch_exec.prompt.md +20 -0
- machineconfig/scripts/python/ai/solutions/generic.py +1 -1
- machineconfig/scripts/python/ai/{generate_files.py → utils/generate_files.py} +2 -2
- machineconfig/scripts/python/cloud.py +6 -6
- machineconfig/scripts/python/croshell.py +67 -60
- machineconfig/scripts/python/devops.py +41 -21
- machineconfig/scripts/python/devops_navigator.py +0 -4
- machineconfig/scripts/python/env_manager/env_manager_tui.py +204 -0
- machineconfig/scripts/python/env_manager/path_manager_tui.py +1 -1
- machineconfig/scripts/python/fire_jobs.py +95 -67
- machineconfig/scripts/python/ftpx.py +44 -17
- machineconfig/scripts/python/helpers/ast_search.py +74 -0
- machineconfig/scripts/python/helpers/qr_code.py +166 -0
- machineconfig/scripts/python/helpers/repo_rag.py +325 -0
- machineconfig/scripts/python/helpers/symantic_search.py +25 -0
- machineconfig/scripts/python/helpers_agents/agentic_frameworks/fire_crush.json +1 -1
- machineconfig/scripts/python/helpers_agents/agentic_frameworks/fire_crush.py +9 -7
- machineconfig/scripts/python/helpers_agents/agentic_frameworks/fire_gemini.py +21 -8
- machineconfig/scripts/python/helpers_agents/agentic_frameworks/fire_qwen.py +0 -12
- machineconfig/scripts/python/helpers_agents/fire_agents_help_launch.py +30 -11
- machineconfig/scripts/python/helpers_agents/fire_agents_helper_types.py +9 -2
- machineconfig/scripts/python/helpers_agents/privacy/configs/aichat/config.yaml +5 -0
- machineconfig/scripts/python/helpers_agents/privacy/configs/aider/.aider.conf.yml +2 -0
- machineconfig/scripts/python/helpers_agents/privacy/configs/copilot/config.yml +1 -0
- machineconfig/scripts/python/helpers_agents/privacy/configs/crush/crush.json +10 -0
- machineconfig/scripts/python/helpers_agents/privacy/configs/gemini/settings.json +12 -0
- machineconfig/scripts/python/helpers_agents/privacy/privacy.py +109 -0
- machineconfig/scripts/python/helpers_agents/templates/prompt.txt +8 -4
- machineconfig/scripts/python/helpers_agents/templates/template.sh +18 -8
- machineconfig/scripts/python/helpers_cloud/cloud_copy.py +28 -21
- machineconfig/scripts/python/helpers_cloud/cloud_helpers.py +1 -1
- machineconfig/scripts/python/helpers_cloud/cloud_mount.py +19 -17
- machineconfig/scripts/python/helpers_cloud/cloud_sync.py +8 -7
- machineconfig/scripts/python/helpers_croshell/crosh.py +3 -3
- machineconfig/scripts/python/helpers_croshell/start_slidev.py +6 -7
- machineconfig/scripts/python/helpers_devops/cli_config.py +19 -25
- machineconfig/scripts/python/helpers_devops/cli_config_dotfile.py +22 -13
- machineconfig/scripts/python/helpers_devops/cli_nw.py +113 -26
- machineconfig/scripts/python/helpers_devops/cli_repos.py +37 -11
- machineconfig/scripts/python/helpers_devops/cli_self.py +84 -39
- machineconfig/scripts/python/helpers_devops/cli_share_file.py +9 -9
- machineconfig/scripts/python/helpers_devops/cli_share_server.py +13 -12
- machineconfig/scripts/python/helpers_devops/{cli_terminal.py → cli_share_terminal.py} +15 -17
- machineconfig/scripts/python/helpers_devops/devops_backup_retrieve.py +4 -4
- machineconfig/scripts/python/helpers_devops/devops_status.py +7 -19
- machineconfig/scripts/python/helpers_devops/run_script.py +168 -0
- machineconfig/scripts/python/helpers_devops/themes/choose_wezterm_theme.py +1 -1
- machineconfig/scripts/python/helpers_fire_command/file_wrangler.py +2 -19
- machineconfig/scripts/python/helpers_fire_command/fire_jobs_args_helper.py +1 -0
- machineconfig/scripts/python/helpers_fire_command/fire_jobs_route_helper.py +25 -15
- machineconfig/scripts/python/helpers_msearch/scripts_linux/fzfg +3 -3
- machineconfig/scripts/python/helpers_msearch/scripts_windows/fzfg.ps1 +58 -1
- machineconfig/scripts/python/helpers_navigator/command_tree.py +50 -18
- machineconfig/scripts/python/helpers_network/address.py +176 -0
- machineconfig/scripts/python/helpers_network/address_switch.py +78 -0
- machineconfig/scripts/python/{nw → helpers_network}/mount_nfs.py +2 -2
- machineconfig/scripts/python/{nw → helpers_network}/mount_ssh.py +1 -1
- machineconfig/scripts/python/{nw/devops_add_identity.py → helpers_network/ssh_add_identity.py} +35 -1
- machineconfig/scripts/python/{nw/devops_add_ssh_key.py → helpers_network/ssh_add_ssh_key.py} +26 -7
- machineconfig/scripts/python/{nw → helpers_network}/ssh_debug_linux.py +7 -7
- machineconfig/scripts/python/{nw → helpers_network}/ssh_debug_windows.py +4 -4
- machineconfig/scripts/python/helpers_repos/clone.py +0 -1
- machineconfig/scripts/python/helpers_repos/cloud_repo_sync.py +13 -5
- machineconfig/scripts/python/helpers_repos/entrypoint.py +2 -1
- machineconfig/scripts/python/helpers_repos/record.py +2 -1
- machineconfig/scripts/python/helpers_repos/repo_analyzer_1.py +160 -0
- machineconfig/scripts/python/helpers_repos/{count_lines.py → repo_analyzer_2.py} +113 -192
- machineconfig/scripts/python/helpers_sessions/sessions_multiprocess.py +19 -13
- machineconfig/scripts/python/helpers_utils/download.py +150 -0
- machineconfig/scripts/python/helpers_utils/pdf.py +96 -0
- machineconfig/scripts/python/helpers_utils/python.py +187 -0
- machineconfig/scripts/python/interactive.py +17 -26
- machineconfig/scripts/python/{machineconfig.py → mcfg_entry.py} +4 -5
- machineconfig/scripts/python/msearch.py +57 -6
- machineconfig/scripts/python/sessions.py +100 -31
- machineconfig/scripts/python/terminal.py +26 -17
- machineconfig/scripts/python/utils.py +17 -15
- machineconfig/scripts/windows/wrap_mcfg.ps1 +6 -3
- machineconfig/settings/lf/windows/lfcd.ps1 +1 -1
- machineconfig/settings/linters/.ruff.toml +1 -1
- machineconfig/settings/shells/bash/init.sh +29 -2
- machineconfig/settings/shells/ipy/profiles/default/startup/playext.py +1 -1
- machineconfig/settings/shells/nushell/config.nu +2 -2
- machineconfig/settings/shells/nushell/env.nu +45 -6
- machineconfig/settings/shells/nushell/init.nu +282 -95
- machineconfig/settings/shells/pwsh/init.ps1 +1 -0
- machineconfig/settings/shells/wezterm/wezterm.lua +2 -0
- machineconfig/settings/shells/zsh/init.sh +1 -8
- machineconfig/settings/television/cable_unix/alias.toml +8 -0
- machineconfig/settings/television/cable_unix/aws-buckets.toml +14 -0
- machineconfig/settings/television/cable_unix/aws-instances.toml +13 -0
- machineconfig/settings/television/cable_unix/bash-history.toml +8 -0
- machineconfig/settings/television/cable_unix/channels.toml +19 -0
- machineconfig/settings/television/cable_unix/dirs.toml +13 -0
- machineconfig/settings/television/cable_unix/distrobox-list.toml +42 -0
- machineconfig/settings/television/cable_unix/docker-images.toml +13 -0
- machineconfig/settings/television/cable_unix/dotfiles.toml +11 -0
- machineconfig/settings/television/cable_unix/env.toml +17 -0
- machineconfig/settings/television/cable_unix/files.toml +11 -0
- machineconfig/settings/television/cable_unix/fish-history.toml +8 -0
- machineconfig/settings/television/cable_unix/git-branch.toml +11 -0
- machineconfig/settings/television/cable_unix/git-diff.toml +10 -0
- machineconfig/settings/television/cable_unix/git-log.toml +12 -0
- machineconfig/settings/television/cable_unix/git-reflog.toml +12 -0
- machineconfig/settings/television/cable_unix/git-repos.toml +16 -0
- machineconfig/settings/television/cable_unix/guix.toml +20 -0
- machineconfig/settings/television/cable_unix/just-recipes.toml +18 -0
- machineconfig/settings/television/cable_unix/k8s-deployments.toml +36 -0
- machineconfig/settings/television/cable_unix/k8s-pods.toml +50 -0
- machineconfig/settings/television/cable_unix/k8s-services.toml +36 -0
- machineconfig/settings/television/cable_unix/man-pages.toml +24 -0
- machineconfig/settings/television/cable_unix/nu-history.toml +7 -0
- machineconfig/settings/television/cable_unix/procs.toml +20 -0
- machineconfig/settings/television/cable_unix/text.toml +17 -0
- machineconfig/settings/television/cable_unix/tldr.toml +18 -0
- machineconfig/settings/television/cable_unix/zsh-history.toml +9 -0
- machineconfig/settings/television/cable_windows/alias.toml +7 -0
- machineconfig/settings/television/cable_windows/dirs.toml +13 -0
- machineconfig/settings/television/cable_windows/docker-images.toml +13 -0
- machineconfig/settings/television/cable_windows/dotfiles.toml +11 -0
- machineconfig/settings/television/cable_windows/env.toml +17 -0
- machineconfig/settings/television/cable_windows/files.toml +14 -0
- machineconfig/settings/television/cable_windows/git-branch.toml +11 -0
- machineconfig/settings/television/cable_windows/git-diff.toml +10 -0
- machineconfig/settings/television/cable_windows/git-log.toml +11 -0
- machineconfig/settings/television/cable_windows/git-reflog.toml +11 -0
- machineconfig/settings/television/cable_windows/git-repos.toml +15 -0
- machineconfig/settings/television/cable_windows/nu-history.toml +7 -0
- machineconfig/settings/television/cable_windows/pwsh-history.toml +6 -0
- machineconfig/settings/television/cable_windows/text.toml +17 -0
- machineconfig/settings/wt/__init__.py +0 -0
- machineconfig/settings/yazi/init.lua +49 -24
- machineconfig/settings/yazi/keymap_linux.toml +19 -4
- machineconfig/settings/yazi/keymap_windows.toml +0 -1
- machineconfig/settings/yazi/shell/yazi_cd.ps1 +29 -5
- machineconfig/settings/yazi/theme.toml +4 -0
- machineconfig/settings/yazi/yazi_linux.toml +84 -0
- machineconfig/settings/yazi/yazi_windows.toml +58 -0
- machineconfig/settings/zellij/layouts/st.kdl +39 -8
- machineconfig/setup_linux/__init__.py +1 -2
- machineconfig/setup_linux/apps_desktop.sh +8 -27
- machineconfig/setup_linux/web_shortcuts/interactive.sh +12 -10
- machineconfig/setup_linux/web_shortcuts/live_from_github.sh +31 -0
- machineconfig/setup_mac/__init__.py +2 -3
- machineconfig/setup_windows/__init__.py +3 -5
- machineconfig/setup_windows/ssh/openssh-server.ps1 +1 -1
- machineconfig/setup_windows/uv.ps1 +8 -1
- machineconfig/setup_windows/web_shortcuts/interactive.ps1 +12 -10
- machineconfig/setup_windows/web_shortcuts/live_from_github.ps1 +30 -0
- machineconfig/setup_windows/web_shortcuts/quick_init.ps1 +17 -0
- machineconfig/utils/accessories.py +7 -4
- machineconfig/utils/code.py +39 -11
- machineconfig/utils/files/headers.py +2 -2
- machineconfig/utils/installer_utils/github_release_bulk.py +156 -119
- machineconfig/utils/installer_utils/install_from_url.py +183 -0
- machineconfig/utils/installer_utils/installer_class.py +43 -100
- machineconfig/utils/installer_utils/installer_cli.py +175 -0
- machineconfig/utils/installer_utils/installer_helper.py +129 -0
- machineconfig/utils/installer_utils/{installer_abc.py → installer_locator_utils.py} +36 -85
- machineconfig/utils/{installer.py → installer_utils/installer_runner.py} +16 -59
- machineconfig/utils/io.py +0 -1
- machineconfig/utils/links.py +2 -2
- machineconfig/utils/meta.py +30 -16
- machineconfig/utils/options.py +42 -24
- machineconfig/utils/options_tv.py +119 -0
- machineconfig/utils/path_extended.py +42 -20
- machineconfig/utils/path_helper.py +75 -22
- machineconfig/utils/procs.py +1 -1
- machineconfig/utils/scheduler.py +20 -53
- machineconfig/utils/schemas/layouts/layout_types.py +1 -1
- machineconfig/utils/ssh.py +159 -418
- machineconfig/utils/ssh_utils/abc.py +5 -0
- machineconfig/utils/ssh_utils/copy_from_here.py +111 -0
- machineconfig/utils/ssh_utils/copy_to_here.py +303 -0
- machineconfig/utils/ssh_utils/utils.py +142 -0
- machineconfig/utils/ssh_utils/wsl.py +210 -0
- machineconfig/utils/terminal.py +1 -0
- machineconfig/utils/upgrade_packages.py +6 -1
- machineconfig/utils/ve.py +12 -4
- machineconfig-8.12.dist-info/METADATA +132 -0
- {machineconfig-7.50.dist-info → machineconfig-8.12.dist-info}/RECORD +265 -215
- {machineconfig-7.50.dist-info → machineconfig-8.12.dist-info}/entry_points.txt +2 -4
- machineconfig/jobs/installer/linux_scripts/pgsql.sh +0 -41
- machineconfig/jobs/installer/linux_scripts/timescaledb.sh +0 -71
- machineconfig/jobs/installer/powershell_scripts/archive_pygraphviz.ps1 +0 -12
- machineconfig/jobs/installer/powershell_scripts/openssh-server_add_key.ps1 +0 -7
- machineconfig/jobs/installer/powershell_scripts/openssh-server_copy-ssh-id.ps1 +0 -14
- machineconfig/scripts/linux/other/switch_ip +0 -20
- machineconfig/scripts/python/ai/command_runner/prompt.txt +0 -9
- machineconfig/scripts/python/define.py +0 -31
- machineconfig/scripts/python/explore.py +0 -49
- machineconfig/scripts/python/helpers_devops/cli_utils.py +0 -246
- machineconfig/scripts/python/helpers_msearch/scripts_linux/fzfag +0 -17
- machineconfig/scripts/python/helpers_msearch/scripts_linux/fzfrga +0 -21
- machineconfig/scripts/python/helpers_msearch/scripts_linux/skrg +0 -4
- machineconfig/scripts/python/helpers_msearch/scripts_windows/fzfb.ps1 +0 -3
- machineconfig/scripts/python/helpers_msearch/scripts_windows/fzfrga.bat +0 -20
- machineconfig/scripts/python/helpers_repos/count_lines_frontend.py +0 -17
- machineconfig/scripts/python/nw/add_ssh_key.py +0 -148
- machineconfig/scripts/python/nw/wsl_windows_transfer.py +0 -66
- machineconfig/scripts/windows/mounts/mount_ssh.ps1 +0 -13
- machineconfig/settings/lf/linux/exe/fzf_nano.sh +0 -16
- machineconfig/settings/lf/windows/fzf_edit.ps1 +0 -6
- machineconfig/settings/lf/windows/tst.ps1 +0 -1
- machineconfig/settings/yazi/yazi.toml +0 -17
- machineconfig/setup_linux/apps.sh +0 -66
- machineconfig/setup_linux/others/cli_installation.sh +0 -137
- machineconfig/setup_linux/ssh/openssh_all.sh +0 -25
- machineconfig/setup_linux/ssh/openssh_wsl.sh +0 -38
- machineconfig/setup_mac/apps.sh +0 -73
- machineconfig/setup_windows/apps.ps1 +0 -62
- machineconfig/setup_windows/others/obs.ps1 +0 -4
- machineconfig/setup_windows/ssh/add_identity.ps1 +0 -11
- machineconfig/utils/installer_utils/installer.py +0 -221
- machineconfig-7.50.dist-info/METADATA +0 -92
- /machineconfig/jobs/installer/linux_scripts/{warp-cli.sh → cloudflare_warp_cli.sh} +0 -0
- /machineconfig/jobs/installer/{custom_dev → python_scripts}/__init__.py +0 -0
- /machineconfig/jobs/installer/{custom_dev → python_scripts}/alacritty.py +0 -0
- /machineconfig/jobs/installer/{custom_dev → python_scripts}/bypass_paywall.py +0 -0
- /machineconfig/jobs/installer/{custom_dev → python_scripts}/cursor.py +0 -0
- /machineconfig/jobs/installer/{custom_dev → python_scripts}/espanso.py +0 -0
- /machineconfig/jobs/installer/{custom → python_scripts}/gh.py +0 -0
- /machineconfig/jobs/installer/{custom_dev → python_scripts}/goes.py +0 -0
- /machineconfig/jobs/installer/{custom_dev → python_scripts}/lvim.py +0 -0
- /machineconfig/jobs/installer/{custom_dev → python_scripts}/redis.py +0 -0
- /machineconfig/{setup_linux/others → jobs/scripts/bash_scripts}/android.sh +0 -0
- /machineconfig/jobs/{installer/linux_scripts → scripts/bash_scripts}/lid.sh +0 -0
- /machineconfig/{setup_linux/others → jobs/scripts/bash_scripts}/mint_keyboard_shortcuts.sh +0 -0
- /machineconfig/{scripts/python/nw → jobs/scripts/bash_scripts}/mount_drive +0 -0
- /machineconfig/{scripts/python/nw → jobs/scripts/bash_scripts}/mount_nw_drive +0 -0
- /machineconfig/{scripts/python/nw → jobs/scripts/bash_scripts}/mount_smb +0 -0
- /machineconfig/{scripts/linux/other → jobs/scripts/bash_scripts}/share_cloud.sh +0 -0
- /machineconfig/{scripts/linux/other → jobs/scripts/bash_scripts}/share_nfs +0 -0
- /machineconfig/{scripts/linux/other → jobs/scripts/bash_scripts}/start_docker +0 -0
- /machineconfig/{scripts → jobs/scripts/powershell_scripts}/Restore-ThunderbirdProfile.ps1 +0 -0
- /machineconfig/{setup_windows/others → jobs/scripts/powershell_scripts}/docker.ps1 +0 -0
- /machineconfig/{scripts/windows/mounts → jobs/scripts/powershell_scripts}/mount_nfs.ps1 +0 -0
- /machineconfig/{scripts/windows/mounts → jobs/scripts/powershell_scripts}/mount_nw.ps1 +0 -0
- /machineconfig/{scripts/windows/mounts → jobs/scripts/powershell_scripts}/mount_smb.ps1 +0 -0
- /machineconfig/{setup_windows/others → jobs/scripts/powershell_scripts}/power_options.ps1 +0 -0
- /machineconfig/{scripts/windows/mounts → jobs/scripts/powershell_scripts}/share_cloud.cmd +0 -0
- /machineconfig/{scripts/windows/mounts → jobs/scripts/powershell_scripts}/share_smb.ps1 +0 -0
- /machineconfig/{scripts/windows/mounts → jobs/scripts/powershell_scripts}/unlock_bitlocker.ps1 +0 -0
- /machineconfig/scripts/python/{nw → ai/utils}/__init__.py +0 -0
- /machineconfig/scripts/python/ai/{vscode_tasks.py → utils/vscode_tasks.py} +0 -0
- /machineconfig/{settings/shells/pwsh/profile.ps1 → scripts/python/helpers_fire_command/f.py} +0 -0
- /machineconfig/{setup_windows/wt_and_pwsh → scripts/python/helpers_network}/__init__.py +0 -0
- /machineconfig/scripts/python/{nw → helpers_network}/mount_nw_drive.py +0 -0
- /machineconfig/scripts/python/{nw → helpers_network}/onetimeshare.py +0 -0
- /machineconfig/scripts/python/{nw → helpers_network}/wifi_conn.py +0 -0
- /machineconfig/{setup_windows/wt_and_pwsh → settings/wt}/set_wt_settings.py +0 -0
- {machineconfig-7.50.dist-info → machineconfig-8.12.dist-info}/WHEEL +0 -0
- {machineconfig-7.50.dist-info → machineconfig-8.12.dist-info}/top_level.txt +0 -0
|
@@ -1,9 +1,33 @@
|
|
|
1
|
+
# function y {
|
|
2
|
+
# $tmp = (New-TemporaryFile).FullName
|
|
3
|
+
# yazi $args --cwd-file="$tmp"
|
|
4
|
+
# $cwd = Get-Content -Path $tmp -Encoding UTF8
|
|
5
|
+
# if (-not [String]::IsNullOrEmpty($cwd) -and $cwd -ne $PWD.Path) {
|
|
6
|
+
# Set-Location -LiteralPath (Resolve-Path -LiteralPath $cwd).Path
|
|
7
|
+
# }
|
|
8
|
+
# Remove-Item -Path $tmp
|
|
9
|
+
# }
|
|
1
10
|
function y {
|
|
11
|
+
# Save + temporarily disable WezTerm/Starship prompt marking
|
|
12
|
+
$oldWez = $env:WEZTERM_SHELL_SKIP_ALL
|
|
13
|
+
$env:WEZTERM_SHELL_SKIP_ALL = "1" # tells WezTerm integration to skip markers (supported knob)
|
|
14
|
+
$oldTransient = $env:STARSHIP_DISABLE_TRANSIENT_PROMPT
|
|
15
|
+
$env:STARSHIP_DISABLE_TRANSIENT_PROMPT = "true"
|
|
16
|
+
|
|
2
17
|
$tmp = (New-TemporaryFile).FullName
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
18
|
+
try {
|
|
19
|
+
yazi $args --cwd-file="$tmp"
|
|
20
|
+
$cwd = Get-Content -Path $tmp -Encoding UTF8
|
|
21
|
+
if (-not [string]::IsNullOrEmpty($cwd) -and $cwd -ne $PWD.Path) {
|
|
22
|
+
Set-Location -LiteralPath (Resolve-Path -LiteralPath $cwd).Path
|
|
23
|
+
}
|
|
24
|
+
} finally {
|
|
25
|
+
# Clean up temp file
|
|
26
|
+
Remove-Item -Path $tmp -ErrorAction SilentlyContinue
|
|
27
|
+
# Restore env
|
|
28
|
+
if ($null -ne $oldWez) { $env:WEZTERM_SHELL_SKIP_ALL = $oldWez } else { Remove-Item Env:\WEZTERM_SHELL_SKIP_ALL -ErrorAction SilentlyContinue }
|
|
29
|
+
if ($null -ne $oldTransient) { $env:STARSHIP_DISABLE_TRANSIENT_PROMPT = $oldTransient } else { Remove-Item Env:\STARSHIP_DISABLE_TRANSIENT_PROMPT -ErrorAction SilentlyContinue }
|
|
30
|
+
# Nudge terminal back to sane modes (cursor on, no mouse, no bracketed paste)
|
|
31
|
+
Write-Host -NoNewline "`e[0m`e[?25h`e[?1000l`e[?1002l`e[?1006l`e[?2004l"
|
|
7
32
|
}
|
|
8
|
-
Remove-Item -Path $tmp
|
|
9
33
|
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
|
|
2
|
+
[mgr]
|
|
3
|
+
show_hidden = true
|
|
4
|
+
ratio = [1, 3, 5]
|
|
5
|
+
|
|
6
|
+
[opener]
|
|
7
|
+
system_default = [
|
|
8
|
+
{ run = "xdg-open \"$1\"", desc = "System Default", block = false, orphan = false, for = "unix" }
|
|
9
|
+
]
|
|
10
|
+
edit = [
|
|
11
|
+
{ run = 'hx "$@"', desc = "Helix (Editor)", block = true, orphan = false, for = "unix" }
|
|
12
|
+
]
|
|
13
|
+
vscode = [
|
|
14
|
+
{ run = "code \"$@\"", desc = "VSCode (Editor)", block = true, orphan = false, for = "unix" }
|
|
15
|
+
]
|
|
16
|
+
play = [
|
|
17
|
+
{ run = "mpv \"$@\"", desc = "MPV (Media)", block = false, orphan = false, for = "unix" }
|
|
18
|
+
]
|
|
19
|
+
open = [
|
|
20
|
+
{ run = "xdg-open \"$1\"", desc = "System Default Open", block = false, orphan = false, for = "unix" }
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
[open]
|
|
24
|
+
prepend_rules = [
|
|
25
|
+
# Text/Code files - open with Helix by default
|
|
26
|
+
{ name = "*.py", use = ["edit", "vscode"] },
|
|
27
|
+
{ name = "*.{rs,toml,yaml,yml,json,js,ts,tsx,jsx,html,css,md,txt,sh,bash,zsh,ps1}", use = ["edit", "vscode"] },
|
|
28
|
+
{ mime = "text/*", use = ["edit", "vscode"] },
|
|
29
|
+
]
|
|
30
|
+
rules = [
|
|
31
|
+
{ mime = "application/pdf", use = ["system_default"] },
|
|
32
|
+
{ mime = "image/*", use = ["system_default"] },
|
|
33
|
+
{ mime = "{audio,video}/*", use = ["system_default"] },
|
|
34
|
+
{ name = "*", use = ["system_default"] }
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
[plugin]
|
|
39
|
+
dir = "~/.config/yazi/plugins"
|
|
40
|
+
|
|
41
|
+
prepend_previewers = [
|
|
42
|
+
# Markdown previewer
|
|
43
|
+
{ name = "*.md", run = 'piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"' },
|
|
44
|
+
# Archive previewer
|
|
45
|
+
{ mime = "application/*zip", run = "ouch" },
|
|
46
|
+
{ mime = "application/x-tar", run = "ouch" },
|
|
47
|
+
{ mime = "application/x-bzip2", run = "ouch" },
|
|
48
|
+
{ mime = "application/x-7z-compressed", run = "ouch" },
|
|
49
|
+
{ mime = "application/x-rar", run = "ouch" },
|
|
50
|
+
{ mime = "application/vnd.rar", run = "ouch" },
|
|
51
|
+
{ mime = "application/x-xz", run = "ouch" },
|
|
52
|
+
{ mime = "application/xz", run = "ouch" },
|
|
53
|
+
{ mime = "application/x-zstd", run = "ouch" },
|
|
54
|
+
{ mime = "application/zstd", run = "ouch" },
|
|
55
|
+
{ mime = "application/java-archive", run = "ouch" },
|
|
56
|
+
|
|
57
|
+
# { name = "*.csv", run = "duckdb" },
|
|
58
|
+
# { name = "*.tsv", run = "duckdb" },
|
|
59
|
+
# { name = "*.json", run = "duckdb" },
|
|
60
|
+
# { name = "*.parquet", run = "duckdb" },
|
|
61
|
+
# { name = "*.txt", run = "duckdb" },
|
|
62
|
+
# { name = "*.xlsx", run = "duckdb" },
|
|
63
|
+
# { name = "*.db", run = "duckdb" },
|
|
64
|
+
# { name = "*.duckdb", run = "duckdb" }
|
|
65
|
+
]
|
|
66
|
+
|
|
67
|
+
# prepend_preloaders = [ { name = "*.csv", run = "duckdb", multi = false },
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
[[plugin.load]]
|
|
71
|
+
name = "toggle-pane"
|
|
72
|
+
path = "toggle-pane.yazi"
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
[preview]
|
|
76
|
+
# Change them to your desired values
|
|
77
|
+
max_width = 1000
|
|
78
|
+
max_height = 1000
|
|
79
|
+
|
|
80
|
+
previewers = [
|
|
81
|
+
# PDF
|
|
82
|
+
{ mime = "application/pdf", run = "pdf" },
|
|
83
|
+
]
|
|
84
|
+
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
|
|
2
|
+
[mgr]
|
|
3
|
+
show_hidden = true
|
|
4
|
+
ratio = [1, 3, 5]
|
|
5
|
+
|
|
6
|
+
[opener]
|
|
7
|
+
system_default = [
|
|
8
|
+
{ run = "cmd /C start \"\" \"%1\"", desc = "System Default (Windows)", for = "windows", block = false, orphan = false }
|
|
9
|
+
]
|
|
10
|
+
# Edit files in your editor (replace "code" with your editor if you like)
|
|
11
|
+
edit = [
|
|
12
|
+
{ run = "code \"%*\"", desc = "VS Code (Editor)", block = true, orphan = false, for = "windows" }
|
|
13
|
+
]
|
|
14
|
+
helix = [
|
|
15
|
+
{ run = "hx \"%*\"", desc = "Helix (Editor)", block = true, orphan = false, for = "windows" }
|
|
16
|
+
]
|
|
17
|
+
|
|
18
|
+
# Play media files
|
|
19
|
+
play = [
|
|
20
|
+
{ run = "start \"\" \"%*\"", desc = "System Default (Media)", block = false, orphan = false, for = "windows" }
|
|
21
|
+
]
|
|
22
|
+
|
|
23
|
+
# Open files/folders with system default program/explorer
|
|
24
|
+
open = [
|
|
25
|
+
{ run = "start \"\" \"%1\"", desc = "System Default (Open)", block = false, orphan = false, for = "windows" }
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
[open]
|
|
30
|
+
prepend_rules = [
|
|
31
|
+
# Text/Code files - open with VSCode by default, Helix as alternative
|
|
32
|
+
{ name = "*.py", use = ["edit", "helix"] },
|
|
33
|
+
{ name = "*.{rs,toml,yaml,yml,json,js,ts,tsx,jsx,html,css,md,txt,sh,ps1,bat,cmd}", use = ["edit", "helix"] },
|
|
34
|
+
{ mime = "text/*", use = ["edit", "helix"] },
|
|
35
|
+
]
|
|
36
|
+
rules = [
|
|
37
|
+
{ mime = "video/*", use = "play" },
|
|
38
|
+
{ mime = "application/pdf", use = ["system_default"] },
|
|
39
|
+
{ mime = "image/*", use = ["system_default"] },
|
|
40
|
+
{ name = "*", use = ["system_default"] }
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
[plugin]
|
|
46
|
+
# dir = "~/AppData/Roaming/yazi/config/plugins"
|
|
47
|
+
|
|
48
|
+
[[plugin.load]]
|
|
49
|
+
name = "toggle-pane"
|
|
50
|
+
path = "toggle-pane.yazi"
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
[preview]
|
|
54
|
+
# Change them to your desired values
|
|
55
|
+
max_width = 1000
|
|
56
|
+
max_height = 1000
|
|
57
|
+
|
|
58
|
+
|
|
@@ -1,21 +1,52 @@
|
|
|
1
1
|
|
|
2
2
|
layout {
|
|
3
3
|
default_tab_template {
|
|
4
|
-
//
|
|
4
|
+
// show compact status bar and leave room for panes
|
|
5
5
|
pane size=1 borderless=true {
|
|
6
6
|
plugin location="zellij:compact-bar"
|
|
7
7
|
}
|
|
8
8
|
children
|
|
9
|
-
}
|
|
9
|
+
}
|
|
10
|
+
|
|
10
11
|
tab name="📂" focus=false {
|
|
11
12
|
pane name="lfpane" {
|
|
12
|
-
|
|
13
|
+
command "lf"
|
|
13
14
|
}
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
tab name="🔍" focus=false {
|
|
18
|
+
pane name="tpane"
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
tab name="🖥️" focus=true template="default_tab_template" {
|
|
22
|
+
pane name="shell"
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
swap_tiled_layout name="vertical" {
|
|
26
|
+
tab name="🖥️" template="default_tab_template" {
|
|
27
|
+
pane split_direction="vertical" {
|
|
28
|
+
pane
|
|
29
|
+
pane
|
|
30
|
+
}
|
|
17
31
|
}
|
|
18
|
-
}
|
|
32
|
+
}
|
|
19
33
|
|
|
20
|
-
|
|
34
|
+
swap_tiled_layout name="horizontal" {
|
|
35
|
+
tab name="🖥️" template="default_tab_template" {
|
|
36
|
+
pane split_direction="horizontal" {
|
|
37
|
+
pane
|
|
38
|
+
pane
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
swap_tiled_layout name="stacked" {
|
|
44
|
+
tab name="🖥️" template="default_tab_template" {
|
|
45
|
+
pane split_direction="vertical" {
|
|
46
|
+
pane
|
|
47
|
+
pane
|
|
48
|
+
pane
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
21
52
|
}
|
|
@@ -2,10 +2,9 @@
|
|
|
2
2
|
from pathlib import Path
|
|
3
3
|
|
|
4
4
|
INTERACTIVE = Path(__file__).parent.joinpath("web_shortcuts/interactive.sh")
|
|
5
|
-
|
|
5
|
+
LIVE = Path(__file__).parent.joinpath("web_shortcuts/live_from_github.sh")
|
|
6
6
|
UV = Path(__file__).parent.joinpath("uv.sh")
|
|
7
7
|
|
|
8
8
|
APPS_DESKTOP = Path(__file__).parent.joinpath("apps_desktop.sh")
|
|
9
9
|
APPS_GUI = Path(__file__).parent.joinpath("apps_gui.sh")
|
|
10
10
|
|
|
11
|
-
SSH_SERVER = Path(__file__).parent.joinpath("ssh/openssh_server.sh")
|
|
@@ -1,43 +1,24 @@
|
|
|
1
1
|
#!/usr/bin/bash
|
|
2
|
-
# 🖥️ DESKTOP APPLICATIONS INSTALLATION SCRIPT
|
|
3
|
-
# This script installs desktop applications for a Linux workstation
|
|
4
2
|
|
|
5
|
-
echo """🌐 WEB BROWSERS | Installing browser applications
|
|
6
|
-
""
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
# wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
10
|
-
# sudo dpkg -i google-chrome-stable_current_amd64.deb
|
|
11
|
-
|
|
12
|
-
echo """📝 TEXT EDITORS | Installing Neovim editor
|
|
13
|
-
"""
|
|
14
|
-
echo "📥 Installing Neovim via Homebrew..."
|
|
15
|
-
/home/linuxbrew/.linuxbrew/bin/brew install neovim
|
|
3
|
+
echo """🌐 WEB BROWSERS | Installing browser applications"""
|
|
4
|
+
echo "📥 Installing Google Chrome..."
|
|
5
|
+
wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
6
|
+
sudo dpkg -i google-chrome-stable_current_amd64.deb
|
|
16
7
|
|
|
17
|
-
echo """📧 EMAIL CLIENT | Installing Thunderbird
|
|
18
|
-
"""
|
|
8
|
+
echo """📧 EMAIL CLIENT | Installing Thunderbird"""
|
|
19
9
|
echo "📥 Installing Thunderbird via Flatpak..."
|
|
20
10
|
flatpak install flathub org.mozilla.Thunderbird
|
|
21
11
|
|
|
22
|
-
echo """🖲️ TERMINAL EMULATOR | Installing WezTerm
|
|
23
|
-
"""
|
|
24
|
-
echo "📥 Installing WezTerm via Flatpak..."
|
|
25
|
-
flatpak install flathub org.wezfurlong.wezterm
|
|
26
|
-
echo "🚀 Launching WezTerm..."
|
|
27
|
-
flatpak run org.wezfurlong.wezterm
|
|
28
12
|
|
|
29
|
-
echo """✏️ SCREEN ANNOTATION | Installing Gromit-MPX
|
|
30
|
-
"""
|
|
13
|
+
echo """✏️ SCREEN ANNOTATION | Installing Gromit-MPX"""
|
|
31
14
|
echo "📥 Installing Gromit-MPX via Flatpak..."
|
|
32
15
|
flatpak install net.christianbeier.Gromit-MPX
|
|
33
16
|
|
|
34
|
-
echo """📋 CLIPBOARD MANAGERS | Installing CopyQ
|
|
35
|
-
"""
|
|
17
|
+
echo """📋 CLIPBOARD MANAGERS | Installing CopyQ"""
|
|
36
18
|
echo "📥 Installing CopyQ via Flatpak..."
|
|
37
19
|
flatpak install flathub com.github.hluk.copyq --noninteractive
|
|
38
20
|
|
|
39
|
-
echo """🔗 REMOTE DESKTOP | Installing Remmina
|
|
40
|
-
"""
|
|
21
|
+
echo """🔗 REMOTE DESKTOP | Installing Remmina"""
|
|
41
22
|
echo "📥 Installing Remmina and RDP plugin..."
|
|
42
23
|
sudo nala install remmina remmina-plugin-rdp -y
|
|
43
24
|
|
|
@@ -2,16 +2,16 @@
|
|
|
2
2
|
. <( curl -sSL "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/uv.sh")
|
|
3
3
|
. <( curl -sSL "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/scripts/linux/wrap_mcfg")
|
|
4
4
|
|
|
5
|
-
alias devops='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=
|
|
6
|
-
alias cloud='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=
|
|
7
|
-
alias agents='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=
|
|
8
|
-
alias sessions='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=
|
|
9
|
-
alias ftpx='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=
|
|
10
|
-
alias fire='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=
|
|
11
|
-
alias croshell='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=
|
|
12
|
-
alias utils='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=
|
|
13
|
-
alias terminal='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=
|
|
14
|
-
alias msearch='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=
|
|
5
|
+
alias devops='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=8.12" devops'
|
|
6
|
+
alias cloud='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=8.12" cloud'
|
|
7
|
+
alias agents='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=8.12" agents'
|
|
8
|
+
alias sessions='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=8.12" sessions'
|
|
9
|
+
alias ftpx='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=8.12" ftpx'
|
|
10
|
+
alias fire='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=8.12" fire'
|
|
11
|
+
alias croshell='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=8.12" croshell'
|
|
12
|
+
alias utils='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=8.12" utils'
|
|
13
|
+
alias terminal='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=8.12" terminal'
|
|
14
|
+
alias msearch='$HOME/.local/bin/uvx --python 3.14 --from "machineconfig>=8.12" msearch'
|
|
15
15
|
|
|
16
16
|
alias d='wrap_in_shell_script devops'
|
|
17
17
|
alias c='wrap_in_shell_script cloud'
|
|
@@ -25,3 +25,5 @@ alias t='wrap_in_shell_script terminal'
|
|
|
25
25
|
alias ms='wrap_in_shell_script msearch'
|
|
26
26
|
|
|
27
27
|
echo "mcfg command aliases are now defined in this shell session."
|
|
28
|
+
|
|
29
|
+
devops self interactive
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
. <( curl -sSL "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/uv.sh")
|
|
3
|
+
. <( curl -sSL "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/scripts/linux/wrap_mcfg")
|
|
4
|
+
|
|
5
|
+
alias mcfg='$HOME/.local/bin/uvx --python 3.14 --from "git+https://github.com/thisismygitrepo/machineconfig" mcfg'
|
|
6
|
+
|
|
7
|
+
alias d='wrap_in_shell_script mcfg devops'
|
|
8
|
+
alias c='wrap_in_shell_script mcfg cloud'
|
|
9
|
+
alias a='wrap_in_shell_script mcfg agents'
|
|
10
|
+
alias ss='wrap_in_shell_script mcfg sessions'
|
|
11
|
+
alias fx='wrap_in_shell_script mcfg ftpx'
|
|
12
|
+
alias f='wrap_in_shell_script mcfg fire'
|
|
13
|
+
alias rr='wrap_in_shell_script mcfg croshell'
|
|
14
|
+
alias u='wrap_in_shell_script mcfg utils'
|
|
15
|
+
alias t='wrap_in_shell_script mcfg terminal'
|
|
16
|
+
alias ms='wrap_in_shell_script mcfg msearch'
|
|
17
|
+
|
|
18
|
+
alias devops='mcfg devops'
|
|
19
|
+
alias cloud='mcfg cloud'
|
|
20
|
+
alias agents='mcfg agents'
|
|
21
|
+
alias sessions='mcfg sessions'
|
|
22
|
+
alias ftpx='mcfg ftpx'
|
|
23
|
+
alias fire='mcfg fire'
|
|
24
|
+
alias croshell='mcfg croshell'
|
|
25
|
+
alias utils='mcfg utils'
|
|
26
|
+
alias terminal='mcfg terminal'
|
|
27
|
+
alias msearch='mcfg msearch'
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
echo "mcfg command aliases are now defined in this shell session."
|
|
31
|
+
|
|
@@ -7,11 +7,10 @@ pointing at common scripts (so other code can import these paths).
|
|
|
7
7
|
|
|
8
8
|
from pathlib import Path
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
APPS = Path(__file__).parent.joinpath("apps.sh")
|
|
10
|
+
|
|
12
11
|
# Optional helper scripts (may or may not exist)
|
|
13
12
|
UV = Path(__file__).parent.joinpath("uv.sh")
|
|
14
13
|
# Path to macOS SSH helper
|
|
15
14
|
SSH_SETUP = Path(__file__).parent.joinpath("ssh/openssh_setup.sh")
|
|
16
15
|
|
|
17
|
-
__all__ = ["
|
|
16
|
+
__all__ = ["UV", "SSH_SETUP"]
|
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
|
|
2
2
|
from pathlib import Path
|
|
3
3
|
|
|
4
|
-
APPS = Path(__file__).parent.joinpath("apps.ps1")
|
|
5
4
|
UV = Path(__file__).parent.joinpath("uv.ps1")
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
SSH_SERVER = Path(__file__).parent.joinpath("ssh/openssh_server.ps1")
|
|
7
|
+
INTERACTIVE = Path(__file__).parent.joinpath("web_shortcuts/interactive.ps1")
|
|
8
|
+
LIVE = Path(__file__).parent.joinpath("web_shortcuts/live_from_github.ps1")
|
|
10
9
|
|
|
11
|
-
SSH_SERVER = Path(__file__).parent.joinpath("ssh/openssh_server.ps1")
|
|
@@ -5,7 +5,7 @@ Set-ExecutionPolicy Bypass
|
|
|
5
5
|
# PowerShell.exe -ExecutionPolicy Bypass -File "C:\bypass\prompt\standard.ps1" 2>&1>$null
|
|
6
6
|
|
|
7
7
|
# Install SSH-Server on a windows machine. see this one below if this one didn't work:
|
|
8
|
-
# to install: winget install --Id Microsoft.OpenSSH.Preview --source winget --scope user # from: https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH
|
|
8
|
+
# to install: winget install --Id Microsoft.OpenSSH.Preview --source winget --scope user --accept-package-agreements --accept-source-agreements # from: https://github.com/PowerShell/Win32-OpenSSH/wiki/Install-Win32-OpenSSH
|
|
9
9
|
# the result is installed in C:\Program Files\OpenSSH as opposed to C:\Windows\System32\OpenSSH which is the case if openssh is added as a feature/capability to windows
|
|
10
10
|
# However, notice the new path is not in PATH as is the cases with system variant, so it needs to be added manually.
|
|
11
11
|
# finally, ssh config files are always @ "$env:ProgramData\ssh" irrespective of installation method.
|
|
@@ -7,4 +7,11 @@ if (-not (Test-Path -Path "$HOME\.local\bin\uv.exe")) {
|
|
|
7
7
|
Write-Output "uv binary found, updating..."
|
|
8
8
|
& "$HOME\.local\bin\uv.exe" self update
|
|
9
9
|
}
|
|
10
|
-
|
|
10
|
+
|
|
11
|
+
# `C:\Users\aalsaf01\.local\bin` is not on your PATH. To use installed Python executables, run `$env:PATH = "C:\Users\aalsaf01\.local\bin;$env:PATH"` or `uv python update-shell`.
|
|
12
|
+
& "$env:USERPROFILE\.local\bin\uv.exe" python update-shell
|
|
13
|
+
$env:Path = [System.Environment]::GetEnvironmentVariable('Path', 'Machine') + ';' + [System.Environment]::GetEnvironmentVariable('Path', 'User')
|
|
14
|
+
|
|
15
|
+
# & "$HOME\.local\bin\uv.exe" python install 3.14
|
|
16
|
+
uv python install 3.14
|
|
17
|
+
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
iex (iwr "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/uv.ps1").Content
|
|
4
4
|
iex (iwr "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/scripts/windows/wrap_mcfg.ps1").Content
|
|
5
5
|
|
|
6
|
-
function devops { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=
|
|
7
|
-
function cloud { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=
|
|
8
|
-
function agents { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=
|
|
9
|
-
function sessions { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=
|
|
10
|
-
function ftpx { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=
|
|
11
|
-
function fire { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=
|
|
12
|
-
function croshell { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=
|
|
13
|
-
function utils { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=
|
|
14
|
-
function terminal { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=
|
|
15
|
-
function msearch
|
|
6
|
+
function devops { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=8.12" devops $args }
|
|
7
|
+
function cloud { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=8.12" cloud $args }
|
|
8
|
+
function agents { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=8.12" agents $args }
|
|
9
|
+
function sessions { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=8.12" sessions $args }
|
|
10
|
+
function ftpx { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=8.12" ftpx $args }
|
|
11
|
+
function fire { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=8.12" fire $args }
|
|
12
|
+
function croshell { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=8.12" croshell $args }
|
|
13
|
+
function utils { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=8.12" utils $args }
|
|
14
|
+
function terminal { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=8.12" terminal $args }
|
|
15
|
+
function msearch { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "machineconfig>=8.12" msearch $args }
|
|
16
16
|
|
|
17
17
|
function d { wrap_in_shell_script devops @args }
|
|
18
18
|
function c { wrap_in_shell_script cloud @args }
|
|
@@ -26,3 +26,5 @@ function t { wrap_in_shell_script terminal @args }
|
|
|
26
26
|
function ms { wrap_in_shell_script msearch @args }
|
|
27
27
|
|
|
28
28
|
Write-Host "mcfg command aliases are now defined in this PowerShell session."
|
|
29
|
+
|
|
30
|
+
devops self interactive
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
iex (iwr "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/uv.ps1").Content
|
|
4
|
+
iex (iwr "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/scripts/windows/wrap_mcfg.ps1").Content
|
|
5
|
+
|
|
6
|
+
function devops { & "$HOME\.local\bin\uvx.exe" --python 3.14 --from "git+https://github.com/thisismygitrepo/machineconfig" mcfg $args }
|
|
7
|
+
|
|
8
|
+
function devops {mcfg devops @args }
|
|
9
|
+
function cloud {mcfg cloud @args }
|
|
10
|
+
function agents {mcfg agents @args }
|
|
11
|
+
function sessions {mcfg sessions @args }
|
|
12
|
+
function ftpx {mcfg ftpx @args }
|
|
13
|
+
function fire {mcfg fire @args }
|
|
14
|
+
function croshell {mcfg croshell @args }
|
|
15
|
+
function utils {mcfg utils @args }
|
|
16
|
+
function terminal {mcfg terminal @args }
|
|
17
|
+
function msearch {mcfg msearch @args }
|
|
18
|
+
|
|
19
|
+
function d { wrap_in_shell_script mcfg devops @args }
|
|
20
|
+
function c { wrap_in_shell_script mcfg cloud @args }
|
|
21
|
+
function a { wrap_in_shell_script mcfg agents @args }
|
|
22
|
+
function sx { wrap_in_shell_script mcfg sessions @args }
|
|
23
|
+
function fx { wrap_in_shell_script mcfg ftpx @args }
|
|
24
|
+
function f { wrap_in_shell_script mcfg fire @args }
|
|
25
|
+
function rr { wrap_in_shell_script mcfg croshell @args }
|
|
26
|
+
function u { wrap_in_shell_script mcfg utils @args }
|
|
27
|
+
function t { wrap_in_shell_script mcfg terminal @args }
|
|
28
|
+
function ms { wrap_in_shell_script mcfg msearch @args }
|
|
29
|
+
|
|
30
|
+
Write-Host "mcfg command aliases are now defined in this PowerShell session."
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
iex (iwr "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/uv.ps1").Content
|
|
3
|
+
# iex (iwr "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/scripts/windows/wrap_mcfg.ps1").Content
|
|
4
|
+
|
|
5
|
+
uv tool install --upgrade --python 3.14 machineconfig
|
|
6
|
+
|
|
7
|
+
devops install --group sysabc
|
|
8
|
+
|
|
9
|
+
# configs
|
|
10
|
+
devops config copy-assets both
|
|
11
|
+
devops config public --method copy --on-conflict overwrite-default-path --which all
|
|
12
|
+
devops config shell
|
|
13
|
+
devops config shell --which nushell
|
|
14
|
+
|
|
15
|
+
devops install --group termabc
|
|
16
|
+
wt # start Windows Terminal to pick up config changes
|
|
17
|
+
devops install --group gui
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
from pathlib import Path
|
|
2
1
|
from typing import Optional, Any
|
|
3
2
|
|
|
4
3
|
from datetime import datetime, timezone, timedelta
|
|
@@ -96,14 +95,18 @@ def human_friendly_dict(d: dict[str, Any]) -> dict[str, Any]:
|
|
|
96
95
|
return result
|
|
97
96
|
|
|
98
97
|
|
|
99
|
-
def get_repo_root(path: Path) -> Optional[Path]:
|
|
98
|
+
def get_repo_root(path: "Path") -> Optional["Path"]:
|
|
100
99
|
from git import Repo, InvalidGitRepositoryError
|
|
101
|
-
|
|
102
100
|
try:
|
|
103
|
-
repo = Repo(
|
|
101
|
+
repo = Repo(path, search_parent_directories=True)
|
|
104
102
|
root = repo.working_tree_dir
|
|
105
103
|
if root is not None:
|
|
104
|
+
from pathlib import Path
|
|
106
105
|
return Path(root)
|
|
107
106
|
except InvalidGitRepositoryError:
|
|
108
107
|
pass
|
|
109
108
|
return None
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
if __name__ == "__main__":
|
|
112
|
+
from pathlib import Path
|
machineconfig/utils/code.py
CHANGED
|
@@ -1,10 +1,19 @@
|
|
|
1
1
|
|
|
2
|
-
from typing import Any, Optional, Callable
|
|
2
|
+
from typing import Any, Literal, Optional, Callable, cast
|
|
3
3
|
from machineconfig.utils.accessories import randstr
|
|
4
|
-
from machineconfig.utils.meta import lambda_to_python_script
|
|
5
4
|
from pathlib import Path
|
|
6
5
|
|
|
7
6
|
|
|
7
|
+
def get_uv_run_command(platform: str) -> str:
|
|
8
|
+
res = cast(Literal["Windows", "windows", "nt", "Linux", "linux", "Darwin", "darwin", "macos"], platform)
|
|
9
|
+
match res:
|
|
10
|
+
case "Windows" | "windows" | "nt":
|
|
11
|
+
return """& "$env:USERPROFILE/.local/bin/uv" run"""
|
|
12
|
+
case "Linux" | "linux" | "Darwin" | "darwin" | "macos":
|
|
13
|
+
return """$HOME/.local/bin/uv run"""
|
|
14
|
+
case _:
|
|
15
|
+
return """$HOME/.local/bin/uv run"""
|
|
16
|
+
|
|
8
17
|
def print_code(code: str, lexer: str, desc: str, subtitle: str = ""):
|
|
9
18
|
import platform
|
|
10
19
|
try:
|
|
@@ -26,28 +35,47 @@ def print_code(code: str, lexer: str, desc: str, subtitle: str = ""):
|
|
|
26
35
|
print(f"--- End of {desc} ---")
|
|
27
36
|
|
|
28
37
|
|
|
29
|
-
def get_uv_command_executing_python_script(python_script: str, uv_with: Optional[list[str]], uv_project_dir: Optional[str]
|
|
38
|
+
def get_uv_command_executing_python_script(python_script: str, uv_with: Optional[list[str]], uv_project_dir: Optional[str],
|
|
39
|
+
prepend_print: bool = True) -> tuple[str, Path]:
|
|
40
|
+
# python file
|
|
30
41
|
python_file = Path.home().joinpath("tmp_results", "tmp_scripts", "python", randstr() + ".py")
|
|
31
42
|
python_file.parent.mkdir(parents=True, exist_ok=True)
|
|
43
|
+
if prepend_print:
|
|
44
|
+
from machineconfig.utils.meta import lambda_to_python_script
|
|
45
|
+
print_code_string = lambda_to_python_script(lambda: print_code(code=python_script, lexer="python", desc="Temporary Python Script", subtitle="Executing via shell script"),
|
|
46
|
+
in_global=True, import_module=False)
|
|
47
|
+
python_file.write_text(print_code_string + "\n" + python_script, encoding="utf-8")
|
|
48
|
+
else:
|
|
49
|
+
python_file.write_text(python_script, encoding="utf-8")
|
|
50
|
+
|
|
51
|
+
# shell script
|
|
32
52
|
if uv_with is not None and len(uv_with) > 0:
|
|
33
|
-
uv_with.append("rich")
|
|
53
|
+
if prepend_print: uv_with.append("rich")
|
|
34
54
|
uv_with_arg = "--with " + '"' + ",".join(uv_with) + '"'
|
|
35
55
|
else:
|
|
36
|
-
|
|
56
|
+
if prepend_print:
|
|
57
|
+
uv_with_arg = "--with rich"
|
|
58
|
+
else:
|
|
59
|
+
uv_with_arg = ""
|
|
37
60
|
if uv_project_dir is not None:
|
|
38
61
|
uv_project_dir_arg = "--project" + f' "{uv_project_dir}"'
|
|
39
62
|
else:
|
|
40
63
|
uv_project_dir_arg = ""
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
shell_script = f"""
|
|
64
|
+
import platform
|
|
65
|
+
uv_run = get_uv_run_command(platform=platform.system())
|
|
66
|
+
shell_script = f"""{uv_run} {uv_with_arg} {uv_project_dir_arg} {str(python_file)} """
|
|
67
|
+
|
|
44
68
|
return shell_script, python_file
|
|
45
69
|
|
|
46
70
|
|
|
47
71
|
def run_lambda_function(lmb: Callable[[], Any], uv_with: Optional[list[str]], uv_project_dir: Optional[str]) -> None:
|
|
48
|
-
|
|
72
|
+
from machineconfig.utils.meta import lambda_to_python_script
|
|
73
|
+
code = lambda_to_python_script(lmb,
|
|
74
|
+
in_global=True, import_module=False)
|
|
49
75
|
uv_command, _py_file = get_uv_command_executing_python_script(python_script=code, uv_with=uv_with, uv_project_dir=uv_project_dir)
|
|
50
76
|
run_shell_script(uv_command)
|
|
77
|
+
|
|
78
|
+
|
|
51
79
|
def run_python_script_in_marimo(py_script: str, uv_project_with: Optional[str]):
|
|
52
80
|
tmp_dir = Path.home().joinpath("tmp_results", "tmp_scripts", "marimo", randstr())
|
|
53
81
|
tmp_dir.mkdir(parents=True, exist_ok=True)
|
|
@@ -132,7 +160,7 @@ def exit_then_run_shell_script(script: str, strict: bool = False):
|
|
|
132
160
|
op_program_path = Path.home().joinpath("tmp_results", "tmp_scripts", "manual_run", f"manual_script_{randstr()}{suffix}")
|
|
133
161
|
op_program_path.parent.mkdir(parents=True, exist_ok=True)
|
|
134
162
|
op_program_path.write_text(script, encoding="utf-8")
|
|
135
|
-
print_code(script, lexer=lexer, desc="script to run manually")
|
|
163
|
+
print_code(code=script, lexer=lexer, desc="script to run manually")
|
|
136
164
|
console.print("[bold yellow]⚠️ STRICT MODE:[/bold yellow] [cyan]Please run the script manually via your shell by executing:[/cyan]")
|
|
137
165
|
console.print(f"[green]{str(op_program_path)}[/green]")
|
|
138
166
|
console.print("[red]❌ OP_PROGRAM_PATH environment variable is not set in strict mode.[/red]")
|
|
@@ -145,7 +173,7 @@ def exit_then_run_shell_script(script: str, strict: bool = False):
|
|
|
145
173
|
op_program_path.write_text(script, encoding="utf-8")
|
|
146
174
|
console.print("[cyan]🚀 Handing over to shell script runner via OP_PROGRAM_PATH:[/cyan]")
|
|
147
175
|
console.print(f"[bold green]{str(op_program_path)}[/bold green]")
|
|
148
|
-
print_code(script, lexer="shell", desc="script to run via OP_PROGRAM_PATH")
|
|
176
|
+
print_code(code=script, lexer="shell", desc="script to run via OP_PROGRAM_PATH")
|
|
149
177
|
else:
|
|
150
178
|
if op_program_path is not None and exists:
|
|
151
179
|
console.print(f"[yellow]⚠️ OP_PROGRAM_PATH @ {str(op_program_path)} already exists.[/yellow] [cyan]Falling back to direct execution.[/cyan]")
|