machineconfig 1.92__py3-none-any.whl → 1.94__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/__init__.py +0 -8
- machineconfig/cluster/__init__.py +0 -0
- machineconfig/cluster/cloud_manager.py +359 -0
- machineconfig/cluster/data_transfer.py +56 -0
- machineconfig/cluster/distribute.py +280 -0
- machineconfig/cluster/file_manager.py +238 -0
- machineconfig/cluster/job_params.py +148 -0
- machineconfig/cluster/loader_runner.py +150 -0
- machineconfig/cluster/remote_machine.py +281 -0
- machineconfig/cluster/script_execution.py +209 -0
- machineconfig/cluster/script_notify_upon_completion.py +63 -0
- machineconfig/cluster/self_ssh.py +59 -0
- machineconfig/cluster/session_managers.py +183 -0
- machineconfig/cluster/templates/__init__.py +0 -0
- machineconfig/cluster/templates/cli_click.py +104 -0
- machineconfig/cluster/templates/cli_gooey.py +119 -0
- machineconfig/cluster/templates/cli_trogon.py +21 -0
- machineconfig/cluster/templates/f.py +4 -0
- machineconfig/cluster/templates/run_cloud.py +52 -0
- machineconfig/cluster/templates/run_cluster.py +69 -0
- machineconfig/cluster/templates/run_remote.py +67 -0
- machineconfig/cluster/templates/utils.py +37 -0
- machineconfig/jobs/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/linux/msc/lid.sh +26 -0
- machineconfig/jobs/linux/msc/network.sh +39 -0
- machineconfig/jobs/python/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python/__pycache__/check_installations.cpython-311.pyc +0 -0
- machineconfig/jobs/python/__pycache__/checkout_version.cpython-311.pyc +0 -0
- machineconfig/jobs/python/__pycache__/python_ve_symlink.cpython-311.pyc +0 -0
- machineconfig/jobs/python/archive/python_tools.txt +12 -0
- machineconfig/jobs/python/check_installations.py +26 -11
- machineconfig/jobs/python/checkout_version.py +24 -13
- machineconfig/jobs/python/create_zellij_template.py +4 -4
- machineconfig/jobs/python/python_cargo_build_share.py +13 -4
- machineconfig/jobs/python/python_ve_symlink.py +15 -4
- machineconfig/jobs/python/vscode/__pycache__/api.cpython-311.pyc +0 -0
- machineconfig/jobs/python/vscode/__pycache__/link_ve.cpython-311.pyc +0 -0
- machineconfig/jobs/python/vscode/api.py +48 -0
- machineconfig/jobs/python/vscode/link_ve.py +64 -0
- machineconfig/jobs/python/vscode/select_interpreter.py +84 -0
- machineconfig/jobs/python/vscode/sync_code.py +60 -0
- machineconfig/jobs/python_custom_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_custom_installers/__pycache__/hx.cpython-311.pyc +0 -0
- machineconfig/jobs/python_custom_installers/archive/ngrok.py +62 -0
- machineconfig/jobs/python_custom_installers/dev/aider.py +37 -0
- machineconfig/jobs/python_custom_installers/dev/alacritty.py +72 -0
- machineconfig/jobs/python_custom_installers/dev/brave.py +67 -0
- machineconfig/jobs/python_custom_installers/dev/bypass_paywall.py +50 -0
- machineconfig/jobs/python_custom_installers/dev/code.py +62 -0
- machineconfig/jobs/python_custom_installers/dev/cursor.py +67 -0
- machineconfig/jobs/python_custom_installers/dev/docker.py +70 -0
- machineconfig/jobs/python_custom_installers/dev/docker_desktop.py +77 -0
- machineconfig/jobs/python_custom_installers/dev/espanso.py +82 -0
- machineconfig/jobs/python_custom_installers/dev/goes.py +59 -0
- machineconfig/jobs/python_custom_installers/dev/lvim.py +76 -0
- machineconfig/jobs/python_custom_installers/dev/nerdfont.py +67 -0
- machineconfig/jobs/python_custom_installers/dev/redis.py +69 -0
- machineconfig/jobs/python_custom_installers/dev/reverse_proxy.md +31 -0
- machineconfig/jobs/python_custom_installers/dev/warp-cli.py +71 -0
- machineconfig/jobs/python_custom_installers/dev/wezterm.py +71 -0
- machineconfig/jobs/python_custom_installers/gh.py +46 -4
- machineconfig/jobs/python_custom_installers/hx.py +103 -18
- machineconfig/jobs/python_custom_installers/scripts/linux/brave.sh +52 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/docker.sh +140 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/docker_start.sh +48 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/edge.sh +47 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/nerdfont.sh +64 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/pgsql.sh +53 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/redis.sh +76 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/timescaledb.sh +91 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/vscode.sh +66 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/warp-cli.sh +77 -0
- machineconfig/jobs/python_custom_installers/scripts/linux/wezterm.sh +43 -0
- machineconfig/jobs/python_generic_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_generic_installers/config.json +267 -0
- machineconfig/jobs/python_generic_installers/dev/config.archive.json +18 -0
- machineconfig/jobs/python_generic_installers/dev/config.json +394 -0
- machineconfig/jobs/python_linux_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_linux_installers/archive/config.json +10 -0
- machineconfig/jobs/python_linux_installers/config.json +74 -0
- machineconfig/jobs/python_linux_installers/dev/config.json +138 -0
- machineconfig/jobs/python_windows_installers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/jobs/python_windows_installers/archive/file.json +11 -0
- machineconfig/jobs/python_windows_installers/config.json +50 -0
- machineconfig/jobs/python_windows_installers/dev/config.json +3 -0
- machineconfig/jobs/windows/archive/archive_pygraphviz.ps1 +14 -0
- machineconfig/jobs/windows/archive/openssh-server_add_key.ps1 +7 -0
- machineconfig/jobs/windows/archive/openssh-server_copy-ssh-id.ps1 +14 -0
- machineconfig/jobs/windows/start_terminal.ps1 +6 -0
- machineconfig/jobs/windows/startup_file.cmd +2 -0
- machineconfig/profile/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/profile/__pycache__/create.cpython-311.pyc +0 -0
- machineconfig/profile/__pycache__/shell.cpython-311.pyc +0 -0
- machineconfig/profile/create.py +47 -13
- machineconfig/profile/create_hardlinks.py +42 -12
- machineconfig/profile/records/generic/shares.toml +5 -0
- machineconfig/profile/records/linux/apps_summary_report.csv +48 -0
- machineconfig/profile/records/linux/apps_summary_report.md +49 -0
- machineconfig/profile/records/windows/apps_summary_report.csv +1 -0
- machineconfig/profile/records/windows/apps_summary_report.md +2 -0
- machineconfig/profile/shell.py +62 -11
- machineconfig/scripts/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/cloud/init.sh +128 -0
- machineconfig/scripts/linux/activate_ve +87 -0
- machineconfig/scripts/linux/archive/tmate_conn +12 -0
- machineconfig/scripts/linux/archive/tmate_start +12 -0
- machineconfig/scripts/linux/archive/transfer_wsl_win +5 -0
- machineconfig/scripts/linux/checkout_versions +8 -0
- machineconfig/scripts/linux/choose_wezterm_theme +9 -0
- machineconfig/scripts/linux/cloud_copy +9 -0
- machineconfig/scripts/linux/cloud_manager +8 -0
- machineconfig/scripts/linux/cloud_mount +24 -0
- machineconfig/scripts/linux/cloud_repo_sync +22 -0
- machineconfig/scripts/linux/cloud_sync +24 -0
- machineconfig/scripts/linux/croshell +24 -0
- machineconfig/scripts/linux/devops +24 -0
- machineconfig/scripts/linux/fire +46 -0
- machineconfig/scripts/linux/ftpx +8 -0
- machineconfig/scripts/linux/fzf2g +21 -0
- machineconfig/scripts/linux/fzfag +17 -0
- machineconfig/scripts/linux/fzffg +25 -0
- machineconfig/scripts/linux/fzfg +23 -0
- machineconfig/scripts/linux/fzfrga +21 -0
- machineconfig/scripts/linux/gh_models +11 -0
- machineconfig/scripts/linux/kill_process +10 -0
- machineconfig/scripts/linux/mount_drive +128 -0
- machineconfig/scripts/linux/mount_nfs +62 -0
- machineconfig/scripts/linux/mount_nw_drive +72 -0
- machineconfig/scripts/linux/mount_smb +3 -0
- machineconfig/scripts/linux/programs +21 -0
- machineconfig/scripts/linux/repos +24 -0
- machineconfig/scripts/linux/scheduler +8 -0
- machineconfig/scripts/linux/share_cloud.sh +81 -0
- machineconfig/scripts/linux/share_nfs +49 -0
- machineconfig/scripts/linux/share_smb +1 -0
- machineconfig/scripts/linux/skrg +4 -0
- machineconfig/scripts/linux/start_docker +23 -0
- machineconfig/scripts/linux/start_slidev +23 -0
- machineconfig/scripts/linux/start_terminals +12 -0
- machineconfig/scripts/linux/switch_ip +20 -0
- machineconfig/scripts/linux/url2md +10 -0
- machineconfig/scripts/linux/z_ls +104 -0
- machineconfig/scripts/python/.mypy_cache/.gitignore +2 -0
- machineconfig/scripts/python/.mypy_cache/3.11/@plugins_snapshot.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/__future__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/__future__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_ast.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_ast.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_bz2.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_bz2.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_codecs.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_codecs.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_collections_abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_collections_abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_compression.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_compression.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_decimal.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_decimal.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_frozen_importlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_frozen_importlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_frozen_importlib_external.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_frozen_importlib_external.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_io.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_io.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_locale.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_locale.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_stat.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_stat.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_struct.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_struct.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_thread.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_thread.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_typeshed/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_typeshed/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_typeshed/importlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_typeshed/importlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_warnings.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_warnings.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_weakref.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_weakref.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_weakrefset.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/_weakrefset.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/argparse.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/argparse.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/ast.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/ast.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/binascii.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/binascii.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/builtins.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/builtins.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/bz2.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/bz2.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/calendar.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/calendar.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/codecs.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/codecs.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/collections/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/collections/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/collections/abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/collections/abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/configparser.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/configparser.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/contextlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/contextlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/dataclasses.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/dataclasses.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/datetime.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/datetime.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/decimal.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/decimal.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/dis.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/dis.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/_policybase.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/_policybase.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/charset.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/charset.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/contentmanager.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/contentmanager.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/errors.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/errors.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/header.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/header.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/message.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/message.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/policy.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/email/policy.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/enum.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/enum.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/fnmatch.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/fnmatch.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/functools.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/functools.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/gc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/gc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/genericpath.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/genericpath.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/getpass.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/getpass.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/cmd.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/cmd.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/compat.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/compat.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/config.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/config.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/db.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/db.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/diff.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/diff.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/exc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/exc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/base.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/base.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/fun.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/fun.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/typ.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/typ.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/util.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/index/util.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/base.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/base.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/blob.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/blob.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/commit.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/commit.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/fun.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/fun.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/base.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/base.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/root.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/root.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/util.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/submodule/util.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/tag.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/tag.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/tree.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/tree.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/util.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/objects/util.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/head.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/head.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/log.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/log.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/reference.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/reference.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/remote.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/remote.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/symbolic.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/symbolic.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/tag.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/refs/tag.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/remote.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/remote.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/base.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/base.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/fun.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/repo/fun.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/types.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/types.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/util.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/git/util.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/glob.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/glob.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/gzip.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/gzip.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_bootstrap.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_bootstrap.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_bootstrap_external.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/_bootstrap_external.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/machinery.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/machinery.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/metadata/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/metadata/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/metadata/_meta.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/metadata/_meta.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/readers.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/readers.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/_common.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/_common.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/abc.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/importlib/resources/abc.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/inspect.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/inspect.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/io.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/io.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/itertools.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/itertools.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/locale.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/locale.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/logging/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/logging/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/mimetypes.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/mimetypes.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/mmap.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/mmap.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/numbers.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/numbers.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/opcode.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/opcode.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/os/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/os/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/os/path.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/os/path.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/pathlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/pathlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/platform.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/platform.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/posixpath.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/posixpath.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/re.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/re.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/resource.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/resource.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/shlex.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/shlex.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/shutil.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/shutil.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/signal.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/signal.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/scripts/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/scripts/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/scripts/python/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/src/machineconfig/scripts/python/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_compile.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_compile.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_constants.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_constants.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_parse.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sre_parse.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/stat.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/stat.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/string.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/string.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/struct.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/struct.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/subprocess.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/subprocess.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sys/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/sys/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/tarfile.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/tarfile.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/tempfile.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/tempfile.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/textwrap.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/textwrap.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/threading.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/threading.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/time.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/time.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/types.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/types.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/typing.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/typing.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/typing_extensions.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/typing_extensions.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/urllib/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/urllib/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/urllib/parse.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/urllib/parse.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/uuid.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/uuid.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/warnings.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/warnings.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/weakref.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/weakref.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/zipfile/__init__.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/zipfile/__init__.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/zlib.data.json +1 -0
- machineconfig/scripts/python/.mypy_cache/3.11/zlib.meta.json +1 -0
- machineconfig/scripts/python/.mypy_cache/CACHEDIR.TAG +3 -0
- machineconfig/scripts/python/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_copy.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_mount.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_repo_sync.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/cloud_sync.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/croshell.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_backup_retrieve.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_devapps_install.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/devops_update_repos.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/fire_jobs.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/gh_models.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/repos.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/url2md.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/viewer.cpython-311.pyc +0 -0
- machineconfig/scripts/python/__pycache__/vscode_api.cpython-311.pyc +0 -0
- machineconfig/scripts/python/archive/im2text.py +36 -0
- machineconfig/scripts/python/archive/tmate_conn.py +44 -0
- machineconfig/scripts/python/archive/tmate_start.py +48 -0
- machineconfig/scripts/python/choose_wezterm_theme.py +23 -4
- machineconfig/scripts/python/cloud_copy.py +131 -29
- machineconfig/scripts/python/cloud_manager.py +55 -2
- machineconfig/scripts/python/cloud_mount.py +43 -4
- machineconfig/scripts/python/cloud_repo_sync.py +114 -103
- machineconfig/scripts/python/cloud_sync.py +36 -220
- machineconfig/scripts/python/croshell.py +102 -32
- machineconfig/scripts/python/devops.py +143 -42
- machineconfig/scripts/python/devops_add_identity.py +112 -9
- machineconfig/scripts/python/devops_add_ssh_key.py +170 -15
- machineconfig/scripts/python/devops_backup_retrieve.py +132 -14
- machineconfig/scripts/python/devops_devapps_install.py +33 -11
- machineconfig/scripts/python/devops_update_repos.py +36 -29
- machineconfig/scripts/python/dotfile.py +8 -3
- machineconfig/scripts/python/fire_jobs.py +145 -289
- machineconfig/scripts/python/ftpx.py +76 -18
- machineconfig/scripts/python/get_zellij_cmd.py +14 -0
- machineconfig/scripts/python/gh_models.py +72 -25
- machineconfig/scripts/python/helpers/__init__.py +0 -0
- machineconfig/scripts/python/helpers/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/cloud_helpers.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/helpers2.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/__pycache__/helpers4.cpython-311.pyc +0 -0
- machineconfig/scripts/python/helpers/cloud_helpers.py +134 -0
- machineconfig/scripts/python/helpers/helpers2.py +149 -0
- machineconfig/scripts/python/helpers/helpers4.py +178 -0
- machineconfig/scripts/python/helpers/helpers5.py +50 -0
- machineconfig/scripts/python/helpers/repo_sync_helpers.py +126 -0
- machineconfig/scripts/python/mount_nfs.py +46 -15
- machineconfig/scripts/python/mount_nw_drive.py +22 -10
- machineconfig/scripts/python/mount_ssh.py +28 -12
- machineconfig/scripts/python/onetimeshare.py +23 -15
- machineconfig/scripts/python/pomodoro.py +38 -24
- machineconfig/scripts/python/repos.py +29 -32
- machineconfig/scripts/python/scheduler.py +19 -18
- machineconfig/scripts/python/snapshot.py +14 -6
- machineconfig/scripts/python/start_slidev.py +24 -32
- machineconfig/scripts/python/start_terminals.py +23 -10
- machineconfig/scripts/python/viewer.py +53 -0
- machineconfig/scripts/python/viewer_template.py +140 -0
- machineconfig/scripts/python/wifi_conn.py +20 -12
- machineconfig/scripts/python/wsl_windows_transfer.py +18 -10
- machineconfig/scripts/windows/activate_ve.ps1 +54 -0
- machineconfig/scripts/windows/archive/gource2vid.ps1 +14 -0
- machineconfig/scripts/windows/archive/im2text.ps1 +27 -0
- machineconfig/scripts/windows/archive/secure_pull.ps1 +46 -0
- machineconfig/scripts/windows/archive/secure_push.ps1 +85 -0
- machineconfig/scripts/windows/archive/tmate_conn.ps1 +7 -0
- machineconfig/scripts/windows/checkout_version.ps1 +6 -0
- machineconfig/scripts/windows/choose_wezterm_theme.ps1 +20 -0
- machineconfig/scripts/windows/cloud_copy.ps1 +17 -0
- machineconfig/scripts/windows/cloud_manager.ps1 +8 -0
- machineconfig/scripts/windows/cloud_mount.ps1 +25 -0
- machineconfig/scripts/windows/cloud_repo_sync.ps1 +8 -0
- machineconfig/scripts/windows/cloud_sync.ps1 +21 -0
- machineconfig/scripts/windows/croshell.ps1 +40 -0
- machineconfig/scripts/windows/devops.ps1 +32 -0
- machineconfig/scripts/windows/dotfile.ps1 +9 -0
- machineconfig/scripts/windows/fire.ps1 +33 -0
- machineconfig/scripts/windows/ftpx.ps1 +5 -0
- machineconfig/scripts/windows/fzfb.ps1 +3 -0
- machineconfig/scripts/windows/fzfg.ps1 +2 -0
- machineconfig/scripts/windows/fzfrga.bat +20 -0
- machineconfig/scripts/windows/gpt.ps1 +23 -0
- machineconfig/scripts/windows/grep.ps1 +2 -0
- machineconfig/scripts/windows/kill_process.ps1 +8 -0
- machineconfig/scripts/windows/mount_nfs.ps1 +44 -0
- machineconfig/scripts/windows/mount_nw.ps1 +9 -0
- machineconfig/scripts/windows/mount_smb.ps1 +2 -0
- machineconfig/scripts/windows/mount_ssh.ps1 +17 -0
- machineconfig/scripts/windows/nano.ps1 +3 -0
- machineconfig/scripts/windows/neofetch.ps1 +2 -0
- machineconfig/scripts/windows/pomodoro.ps1 +8 -0
- machineconfig/scripts/windows/py2exe.ps1 +12 -0
- machineconfig/scripts/windows/reload_path.ps1 +3 -0
- machineconfig/scripts/windows/repos.ps1 +27 -0
- machineconfig/scripts/windows/scheduler.ps1 +6 -0
- machineconfig/scripts/windows/share_cloud.cmd +34 -0
- machineconfig/scripts/windows/share_nfs.ps1 +0 -0
- machineconfig/scripts/windows/share_smb.ps1 +22 -0
- machineconfig/scripts/windows/snapshot.ps1 +5 -0
- machineconfig/scripts/windows/start_slidev.ps1 +21 -0
- machineconfig/scripts/windows/start_terminals.ps1 +22 -0
- machineconfig/scripts/windows/unlock_bitlocker.ps1 +10 -0
- machineconfig/scripts/windows/utils/op_script_delete.ps1 +7 -0
- machineconfig/scripts/windows/wifi_conn.ps1 +7 -0
- machineconfig/scripts/windows/wsl_rdp_windows_port_forwarding.ps1 +46 -0
- machineconfig/scripts/windows/wsl_ssh_windows_port_forwarding.ps1 +76 -0
- machineconfig/scripts/windows/wsl_windows_transfer.ps1 +7 -0
- machineconfig/settings/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/settings/broot/br.sh +51 -0
- machineconfig/settings/broot/brootcd.ps1 +32 -0
- machineconfig/settings/broot/conf.toml +5 -0
- machineconfig/settings/glow/glow.yml +11 -0
- machineconfig/settings/gromit-mpx/gromit-mpx.cfg +34 -0
- machineconfig/settings/helix/config.toml +27 -0
- machineconfig/settings/helix/languages.toml +22 -0
- machineconfig/settings/keras/keras.json +6 -0
- machineconfig/settings/keyboard/espanso/config/default.yml +45 -0
- machineconfig/settings/keyboard/espanso/match/base.yml +57 -0
- machineconfig/settings/keyboard/kanata/kanata.kbd +0 -0
- machineconfig/settings/lf/linux/autocall/delete.sh +0 -0
- machineconfig/settings/lf/linux/autocall/on-cd.sh +0 -0
- machineconfig/settings/lf/linux/autocall/on-quit.sh +0 -0
- machineconfig/settings/lf/linux/autocall/open.sh +0 -0
- machineconfig/settings/lf/linux/autocall/paste.sh +0 -0
- machineconfig/settings/lf/linux/autocall/pre-cd.sh +0 -0
- machineconfig/settings/lf/linux/autocall/rename.sh +0 -0
- machineconfig/settings/lf/linux/colors +196 -0
- machineconfig/settings/lf/linux/exe/cleaner.sh +7 -0
- machineconfig/settings/lf/linux/exe/fzf_nano.sh +16 -0
- machineconfig/settings/lf/linux/exe/leftpane_previewer.sh +5 -0
- machineconfig/settings/lf/linux/exe/lfcd.sh +32 -0
- machineconfig/settings/lf/linux/exe/previewer.sh +37 -0
- machineconfig/settings/lf/linux/exe/previewer_archive.sh +155 -0
- machineconfig/settings/lf/linux/icons +357 -0
- machineconfig/settings/lf/linux/lfrc +226 -0
- machineconfig/settings/lf/windows/autocall/delete.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/on-cd.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/on-quit.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/open.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/paste.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/pre-cd.ps1 +0 -0
- machineconfig/settings/lf/windows/autocall/rename.ps1 +0 -0
- machineconfig/settings/lf/windows/cd_tere.ps1 +4 -0
- machineconfig/settings/lf/windows/cd_zoxide.ps1 +4 -0
- machineconfig/settings/lf/windows/cd_zoxide2.ps1 +4 -0
- machineconfig/settings/lf/windows/colors +159 -0
- machineconfig/settings/lf/windows/fzf_edit.ps1 +6 -0
- machineconfig/settings/lf/windows/icons +357 -0
- machineconfig/settings/lf/windows/leftpane_previewer.ps1 +3 -0
- machineconfig/settings/lf/windows/lfcd.ps1 +35 -0
- machineconfig/settings/lf/windows/lfrc +133 -0
- machineconfig/settings/lf/windows/mkdir.ps1 +3 -0
- machineconfig/settings/lf/windows/mkfile.ps1 +3 -0
- machineconfig/settings/lf/windows/previewer.ps1 +7 -0
- machineconfig/settings/lf/windows/tst.ps1 +1 -0
- machineconfig/settings/linters/.flake8 +24 -0
- machineconfig/settings/linters/.mypy.ini +29 -0
- machineconfig/settings/linters/.pylintrc +91 -0
- machineconfig/settings/linters/.ruff.toml +77 -0
- machineconfig/settings/linters/.ruff_cache/.gitignore +2 -0
- machineconfig/settings/linters/.ruff_cache/CACHEDIR.TAG +1 -0
- machineconfig/settings/lvim/linux/config.lua +0 -0
- machineconfig/settings/lvim/windows/archive/config_additional.lua +39 -0
- machineconfig/settings/lvim/windows/lua/user/custom_config.lua +13 -0
- machineconfig/settings/mprocs/windows/mprocs.yaml +55 -0
- machineconfig/settings/mprocs/windows/other +12 -0
- machineconfig/settings/pistol/pistol.conf +8 -0
- machineconfig/settings/presenterm/config.yaml +76 -0
- machineconfig/settings/procs/.procs.toml +142 -0
- machineconfig/settings/pudb/pudb.cfg +25 -0
- machineconfig/settings/rofi/config.rasi +4 -0
- machineconfig/settings/rofi/config_default.rasi +147 -0
- machineconfig/settings/shells/alacritty/alacritty.toml +40 -0
- machineconfig/settings/shells/alacritty/alacritty.yml +0 -0
- machineconfig/settings/shells/bash/.inputrc +3 -0
- machineconfig/settings/shells/bash/init.sh +66 -0
- machineconfig/settings/shells/hyper/.hyper.js +201 -0
- machineconfig/settings/shells/ipy/profiles/default/__init__.py +0 -0
- machineconfig/settings/shells/ipy/profiles/default/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/__init__.py +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/__pycache__/__init__.cpython-311.pyc +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/__pycache__/playext.cpython-311.pyc +0 -0
- machineconfig/settings/shells/ipy/profiles/default/startup/playext.py +83 -0
- machineconfig/settings/shells/kitty/kitty.conf +1476 -0
- machineconfig/settings/shells/nushell/config.nu +36 -0
- machineconfig/settings/shells/nushell/env.nu +13 -0
- machineconfig/settings/shells/pwsh/init.ps1 +88 -0
- machineconfig/settings/shells/pwsh/profile.ps1 +0 -0
- machineconfig/settings/shells/starship/starship.toml +58 -0
- machineconfig/settings/shells/vtm/settings.xml +297 -0
- machineconfig/settings/shells/wezterm/wezterm.lua +193 -0
- machineconfig/settings/shells/wt/settings.json +526 -0
- machineconfig/settings/streamlit/config.toml +22 -0
- machineconfig/settings/svim/linux/init.toml +48 -0
- machineconfig/settings/svim/windows/init.toml +48 -0
- machineconfig/settings/tere/terecd.ps1 +8 -0
- machineconfig/settings/tere/terecd.sh +8 -0
- machineconfig/settings/tmux/.tmate.conf +3 -0
- machineconfig/settings/tmux/.tmux.conf +6 -0
- machineconfig/settings/wsl/.wslconfig +35 -0
- machineconfig/settings/yazi/keymap.toml +0 -0
- machineconfig/settings/yazi/theme.toml +0 -0
- machineconfig/settings/yazi/yazi.toml +4 -0
- machineconfig/settings/zed/settings.json +35 -0
- machineconfig/settings/zellij/commands/monitor +9 -0
- machineconfig/settings/zellij/commands/standard_panes +33 -0
- machineconfig/settings/zellij/config.kdl +295 -0
- machineconfig/settings/zellij/config.orig.kdl +295 -0
- machineconfig/settings/zellij/layouts/hist +13 -0
- machineconfig/settings/zellij/layouts/panes.kdl +20 -0
- machineconfig/settings/zellij/layouts/st.kdl +21 -0
- machineconfig/settings/zellij/layouts/st2.kdl +59 -0
- machineconfig/settings/zellij/layouts/stacked_panes.kdl +11 -0
- machineconfig/setup_linux/nix/cli_installation.sh +166 -0
- machineconfig/setup_linux/others/mint_keyboard_shortcuts.sh +30 -0
- machineconfig/setup_linux/others/openssh-server_add_pub_key.sh +60 -0
- machineconfig/setup_linux/web_shortcuts/all.sh +53 -0
- machineconfig/setup_linux/web_shortcuts/ascii_art.sh +100 -0
- machineconfig/setup_linux/web_shortcuts/croshell.sh +66 -0
- machineconfig/setup_linux/web_shortcuts/interactive.sh +241 -0
- machineconfig/setup_linux/web_shortcuts/ssh.sh +64 -0
- machineconfig/setup_linux/web_shortcuts/update_system.sh +55 -0
- machineconfig/setup_windows/others/docker.ps1 +7 -0
- machineconfig/setup_windows/others/obs.ps1 +4 -0
- machineconfig/setup_windows/web_shortcuts/all.ps1 +18 -0
- machineconfig/setup_windows/web_shortcuts/ascii_art.ps1 +36 -0
- machineconfig/setup_windows/web_shortcuts/croshell.ps1 +16 -0
- machineconfig/setup_windows/web_shortcuts/interactive.ps1 +200 -0
- machineconfig/setup_windows/web_shortcuts/ssh.ps1 +11 -0
- machineconfig/setup_windows/wt_and_pwsh/install_fonts.ps1 +27 -0
- machineconfig/setup_windows/wt_and_pwsh/set_pwsh_theme.py +12 -2
- machineconfig/setup_windows/wt_and_pwsh/set_wt_settings.py +45 -9
- machineconfig/utils/ai/__init__.py +0 -0
- machineconfig/utils/ai/browser_user_wrapper.py +51 -0
- machineconfig/utils/ai/generate_file_checklist.py +74 -0
- machineconfig/utils/ai/url2md.py +75 -0
- machineconfig/utils/installer.py +101 -253
- machineconfig/utils/installer_utils/__init__.py +0 -0
- machineconfig/utils/installer_utils/installer_abc.py +100 -0
- machineconfig/utils/installer_utils/installer_class.py +253 -0
- machineconfig/utils/procs.py +69 -16
- machineconfig/utils/scheduling.py +47 -13
- machineconfig/utils/utils.py +39 -371
- machineconfig/utils/utils_code.py +82 -0
- machineconfig/utils/utils_links.py +88 -0
- machineconfig/utils/utils_options.py +163 -0
- machineconfig/utils/utils_path.py +151 -0
- machineconfig/utils/ve.py +37 -225
- machineconfig/utils/ve_utils/ve1.py +111 -0
- machineconfig/utils/ve_utils/ve2.py +142 -0
- {machineconfig-1.92.dist-info → machineconfig-1.94.dist-info}/METADATA +25 -21
- machineconfig-1.94.dist-info/RECORD +710 -0
- {machineconfig-1.92.dist-info → machineconfig-1.94.dist-info}/WHEEL +1 -1
- machineconfig-1.92.dist-info/LICENSE +0 -201
- machineconfig-1.92.dist-info/RECORD +0 -70
- {machineconfig-1.92.dist-info → machineconfig-1.94.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"speedtest": {
|
|
3
|
+
"repo_url": "https://install.speedtest.net/app/cli/ookla-speedtest-1.2.0-win64.zip",
|
|
4
|
+
"doc": "🚀 Test your internet connection speed and ping using speedtest.net from the CLI",
|
|
5
|
+
"filename_template_windows_amd_64": "speedtest",
|
|
6
|
+
"filename_template_linux_amd_64": "speedtest",
|
|
7
|
+
"strip_v": false,
|
|
8
|
+
"exe_name": "speedtest"
|
|
9
|
+
},
|
|
10
|
+
"boxes": {
|
|
11
|
+
"repo_url": "https://github.com/ascii-boxes/boxes",
|
|
12
|
+
"doc": "📦 ASCI draws boxes around text.",
|
|
13
|
+
"filename_template_windows_amd_64": "boxes-{}-intel-win32.zip",
|
|
14
|
+
"filename_template_linux_amd_64": "",
|
|
15
|
+
"strip_v": true,
|
|
16
|
+
"exe_name": "boxes"
|
|
17
|
+
},
|
|
18
|
+
"ugrep": {
|
|
19
|
+
"repo_url": "https://github.com/Genivia/ugrep",
|
|
20
|
+
"doc": "🔍 A fast, portable, feature-rich command-line search tool",
|
|
21
|
+
"filename_template_windows_amd_64": "ugrep-windows-x64.zip",
|
|
22
|
+
"filename_template_linux_amd_64": "",
|
|
23
|
+
"strip_v": true,
|
|
24
|
+
"exe_name": "ugrep"
|
|
25
|
+
},
|
|
26
|
+
"zoomit": {
|
|
27
|
+
"repo_url": "https://download.sysinternals.com/files/ZoomIt.zip",
|
|
28
|
+
"doc": "🔍 A screen zoom and annotation tool for presentations",
|
|
29
|
+
"filename_template_windows_amd_64": "",
|
|
30
|
+
"filename_template_linux_amd_64": "",
|
|
31
|
+
"strip_v": false,
|
|
32
|
+
"exe_name": "ZoomIt.exe"
|
|
33
|
+
},
|
|
34
|
+
"ntop": {
|
|
35
|
+
"repo_url": "https://github.com/gsass1/NTop",
|
|
36
|
+
"doc": "📊 Like htop, for Windows",
|
|
37
|
+
"filename_template_windows_amd_64": "ntop.exe",
|
|
38
|
+
"filename_template_linux_amd_64": "",
|
|
39
|
+
"strip_v": false,
|
|
40
|
+
"exe_name": "ntop.exe"
|
|
41
|
+
},
|
|
42
|
+
"devtunnel": {
|
|
43
|
+
"repo_url": "winget install --Id Microsoft.devtunnel --scope user",
|
|
44
|
+
"doc": "🔄 devtunnel secure introspectable tunnels to localhost",
|
|
45
|
+
"filename_template_windows_amd_64": "",
|
|
46
|
+
"filename_template_linux_amd_64": "",
|
|
47
|
+
"strip_v": false,
|
|
48
|
+
"exe_name": "devtunnel"
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
# install https://visualstudio.microsoft.com/visual-cpp-build-tools/
|
|
3
|
+
# include
|
|
4
|
+
# winget install Microsoft.VisualStudio.2022.BuildTools
|
|
5
|
+
# winget install Microsoft.VC++2015-2022Redist-x86
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
~/scritps/activate_ve.ps1
|
|
9
|
+
Set-Location C:
|
|
10
|
+
python -m pip install --global-option=build_ext --global-option="-IC:\Program Files\Graphviz\include" --global-option="-LC:\Program Files\Graphviz\lib" pygraphviz
|
|
11
|
+
# not including the options as above (from https://pygraphviz.github.io/documentation/stable/install.html)
|
|
12
|
+
# would result in an error like this: pygraphviz/graphviz_wrap.c(2711): fatal error C1083: Cannot open include file: 'graphviz/cgraph.h': No such file or directory
|
|
13
|
+
|
|
14
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
$sshfile=""
|
|
3
|
+
$ErrorActionPreference = "Stop"
|
|
4
|
+
$sshd_dir = "$env:ProgramData\ssh"
|
|
5
|
+
cp "$sshd_dir\administrators_authorized_keys" "$sshd_dir\administrators_authorized_keys.orig"
|
|
6
|
+
Get-Content $sshfile >> "$sshd_dir\administrators_authorized_keys"
|
|
7
|
+
Restart-Service sshd -Force
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
|
|
2
|
+
# This is the Windows equivalent of copy-ssh-id on Linux.
|
|
3
|
+
# Just like the original function, it is a convenient way of doing two things in one go:
|
|
4
|
+
# 1- copy a certain public key to the remote machine.
|
|
5
|
+
# scp ~/.ssh/id_rsa.pub $remote_user@$remote_host:~/.ssh/authorized_keys
|
|
6
|
+
# 2- Store the value on the remote in a file called .ssh/authorized_keys
|
|
7
|
+
# ssh $remote_user@$remote_host "echo $public_key >> ~/.ssh/authorized_keys"
|
|
8
|
+
# Idea from: https://www.chrisjhart.com/Windows-10-ssh-copy-id/
|
|
9
|
+
|
|
10
|
+
$key_value = cat ($env:USERPROFILE + "\.ssh\id_rsa.pub")
|
|
11
|
+
ssh $args[0] "powershell.exe -Command type $key_value >> .ssh/authorized_keys"
|
|
12
|
+
|
|
13
|
+
$my_keys='https://github.com/thisismygitrepo.keys'
|
|
14
|
+
(Invoke-WebRequest $my_keys).Content >> .ssh/authorized_keys
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
|
|
2
|
+
wt --profile croshell -d . --title "MyTerminal" --tabColor "red"`; split-pane --vertical --size 0.55 pwsh machineconfig-workingdirectory ~/code/crocodile -Command "pwd" `; split-pane -V PowerShell -NoExit -Command "cd code/machineconfig" `; split-pane -H wsl.exe cmatrix`; split-pane -V wsl.exe sl
|
|
3
|
+
# wt -p "Command Prompt" `; split-pane -p "Windows PowerShell" `; split-pane -H wsl.exe
|
|
4
|
+
|
|
5
|
+
# See more settings here: https://docs.microsoft.com/en-us/windows/terminal/
|
|
6
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
machineconfig/profile/create.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
"""
|
|
3
2
|
This script Takes away all config files from the computer, place them in one directory
|
|
4
3
|
`dotfiles`, and create symlinks to those files from thier original locations.
|
|
@@ -57,15 +56,23 @@ def main_symlinks(choice: Optional[str] = None):
|
|
|
57
56
|
|
|
58
57
|
if isinstance(choice_selected, str):
|
|
59
58
|
if str(choice_selected) == "all" and system == "Windows" and not Terminal.is_user_admin():
|
|
60
|
-
print("
|
|
59
|
+
print(f"""
|
|
60
|
+
{'*' * 80}
|
|
61
|
+
⚠️ WARNING: Administrator privileges required
|
|
62
|
+
{'*' * 80}
|
|
63
|
+
""")
|
|
61
64
|
raise RuntimeError("Run terminal as admin and try again, otherwise, there will be too many popups for admin requests and no chance to terminate the program.")
|
|
62
65
|
elif choice_selected == "all":
|
|
63
|
-
print(f"
|
|
66
|
+
print(f"""
|
|
67
|
+
🔍 Processing all program keys:
|
|
68
|
+
{program_keys}
|
|
69
|
+
""")
|
|
64
70
|
pass # i.e. program_keys = program_keys
|
|
65
71
|
else: program_keys = [choice_selected]
|
|
66
72
|
else: program_keys = choice_selected
|
|
67
73
|
|
|
68
74
|
for program_key in program_keys:
|
|
75
|
+
print(f"\n🔄 Processing {program_key} symlinks...")
|
|
69
76
|
for file_key, file_map in symlink_mapper[program_key].items():
|
|
70
77
|
this = P(file_map['this'])
|
|
71
78
|
to_this = P(file_map['to_this'].replace("REPO_ROOT", REPO_ROOT.as_posix()).replace("LIBRARY_ROOT", LIBRARY_ROOT.as_posix()))
|
|
@@ -73,39 +80,66 @@ def main_symlinks(choice: Optional[str] = None):
|
|
|
73
80
|
try:
|
|
74
81
|
for a_target in to_this.expanduser().search("*"):
|
|
75
82
|
symlink_func(this=this.joinpath(a_target.name), to_this=a_target, prioritize_to_this=overwrite)
|
|
76
|
-
except Exception as ex:
|
|
83
|
+
except Exception as ex:
|
|
84
|
+
print(f"❌ Config error: {program_key} | {file_key} | missing keys 'this ==> to_this'. {ex}")
|
|
77
85
|
if "copy" in file_map:
|
|
78
86
|
try:
|
|
79
87
|
symlink_copy(this=this, to_this=to_this, prioritize_to_this=overwrite)
|
|
80
|
-
except Exception as ex:
|
|
88
|
+
except Exception as ex:
|
|
89
|
+
print(f"❌ Config error: {program_key} | {file_key} | {ex}")
|
|
81
90
|
else:
|
|
82
|
-
try:
|
|
83
|
-
|
|
91
|
+
try:
|
|
92
|
+
symlink_func(this=this, to_this=to_this, prioritize_to_this=overwrite)
|
|
93
|
+
except Exception as ex:
|
|
94
|
+
print(f"❌ Config error: {program_key} | {file_key} | missing keys 'this ==> to_this'. {ex}")
|
|
84
95
|
|
|
85
96
|
if program_key == "ssh" and system == "Linux": # permissions of ~/dotfiles/.ssh should be adjusted
|
|
86
97
|
try:
|
|
98
|
+
print("\n🔒 Setting secure permissions for SSH files...")
|
|
87
99
|
subprocess.run("chmod 700 ~/.ssh/", check=True)
|
|
88
100
|
subprocess.run("chmod 700 ~/dotfiles/creds/.ssh/", check=True) # may require sudo
|
|
89
101
|
subprocess.run("chmod 600 ~/dotfiles/creds/.ssh/*", check=True)
|
|
102
|
+
print("✅ SSH permissions set successfully")
|
|
90
103
|
except Exception as e:
|
|
91
104
|
ERROR_LIST.append(e)
|
|
92
|
-
print("
|
|
105
|
+
print(f"❌ Error setting SSH permissions: {e}")
|
|
93
106
|
|
|
94
|
-
if system == "Linux":
|
|
95
|
-
|
|
107
|
+
if system == "Linux":
|
|
108
|
+
print("\n📜 Setting executable permissions for scripts...")
|
|
109
|
+
Terminal().run(f'chmod +x {LIBRARY_ROOT.joinpath(f"scripts/{system.lower()}")} -R')
|
|
110
|
+
print("✅ Script permissions updated")
|
|
111
|
+
|
|
96
112
|
if len(ERROR_LIST) > 0:
|
|
97
|
-
print("
|
|
113
|
+
print(f"""
|
|
114
|
+
{'*' * 80}
|
|
115
|
+
❗ ERRORS ENCOUNTERED DURING PROCESSING
|
|
116
|
+
{'*' * 80}
|
|
117
|
+
{ERROR_LIST}
|
|
118
|
+
{'*' * 80}
|
|
119
|
+
""")
|
|
120
|
+
else:
|
|
121
|
+
print(f"""
|
|
122
|
+
{'*' * 80}
|
|
123
|
+
✅ All symlinks created successfully!
|
|
124
|
+
{'*' * 80}
|
|
125
|
+
""")
|
|
98
126
|
|
|
99
127
|
|
|
100
128
|
def main(choice: Optional[str] = None):
|
|
101
129
|
console = Console()
|
|
102
130
|
print("\n")
|
|
103
|
-
console.rule("CREATING SYMLINKS")
|
|
131
|
+
console.rule("[bold blue]🔗 CREATING SYMLINKS 🔗")
|
|
104
132
|
main_symlinks(choice=choice)
|
|
105
133
|
|
|
106
134
|
print("\n")
|
|
107
|
-
console.rule("CREATING
|
|
135
|
+
console.rule("[bold green]🐚 CREATING SHELL PROFILE 🐚")
|
|
108
136
|
create_default_shell_profile()
|
|
137
|
+
|
|
138
|
+
print(f"""
|
|
139
|
+
{'=' * 80}
|
|
140
|
+
✨ Configuration setup complete! ✨
|
|
141
|
+
{'=' * 80}
|
|
142
|
+
""")
|
|
109
143
|
|
|
110
144
|
|
|
111
145
|
if __name__ == '__main__':
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
"""
|
|
3
2
|
This script Takes away all config files from the computer, place them in one directory
|
|
4
3
|
`dotfiles`, and create symlinks to those files from thier original locations.
|
|
@@ -35,7 +34,7 @@ def main_symlinks(choice: Optional[str] = None):
|
|
|
35
34
|
program_keys: list[str] = []
|
|
36
35
|
for program_key in program_keys_raw:
|
|
37
36
|
if program_key in exclude or OTHER_SYSTEM in program_key:
|
|
38
|
-
# print(f"Skipping {program_key} for {system}")
|
|
37
|
+
# print(f"🚫 Skipping {program_key} for {system}")
|
|
39
38
|
continue
|
|
40
39
|
else: program_keys.append(program_key)
|
|
41
40
|
|
|
@@ -53,12 +52,16 @@ def main_symlinks(choice: Optional[str] = None):
|
|
|
53
52
|
|
|
54
53
|
if isinstance(choice_selected, str):
|
|
55
54
|
if choice_selected == "all":
|
|
56
|
-
print(f"
|
|
55
|
+
print(f"""
|
|
56
|
+
🔍 Processing all program keys:
|
|
57
|
+
{program_keys}
|
|
58
|
+
""")
|
|
57
59
|
pass # i.e. program_keys = program_keys
|
|
58
60
|
else: program_keys = [choice_selected]
|
|
59
61
|
else: program_keys = choice_selected
|
|
60
62
|
|
|
61
63
|
for program_key in program_keys:
|
|
64
|
+
print(f"\n🔄 Creating hardlinks for {program_key}...")
|
|
62
65
|
for file_key, file_map in symlink_mapper[program_key].items():
|
|
63
66
|
this = P(file_map['this'])
|
|
64
67
|
to_this = P(file_map['to_this'].replace("REPO_ROOT", REPO_ROOT.as_posix()).replace("LIBRARY_ROOT", LIBRARY_ROOT.as_posix()))
|
|
@@ -66,35 +69,62 @@ def main_symlinks(choice: Optional[str] = None):
|
|
|
66
69
|
try:
|
|
67
70
|
for a_target in to_this.expanduser().search("*"):
|
|
68
71
|
symlink_func(this=this.joinpath(a_target.name), to_this=a_target, prioritize_to_this=overwrite)
|
|
69
|
-
except Exception as ex:
|
|
72
|
+
except Exception as ex:
|
|
73
|
+
print(f"❌ Config error: {program_key} | {file_key} | missing keys 'this ==> to_this'. {ex}")
|
|
70
74
|
else:
|
|
71
|
-
try:
|
|
72
|
-
|
|
75
|
+
try:
|
|
76
|
+
symlink_func(this=this, to_this=to_this, prioritize_to_this=overwrite)
|
|
77
|
+
print(f" ✅ Created hardlink from {this} to {to_this}")
|
|
78
|
+
except Exception as ex:
|
|
79
|
+
print(f"❌ Config error: {program_key} | {file_key} | missing keys 'this ==> to_this'. {ex}")
|
|
73
80
|
|
|
74
81
|
if program_key == "ssh" and system == "Linux": # permissions of ~/dotfiles/.ssh should be adjusted
|
|
75
82
|
try:
|
|
83
|
+
print("\n🔒 Setting secure permissions for SSH files...")
|
|
76
84
|
subprocess.run("chmod 700 ~/.ssh/", check=True)
|
|
77
85
|
subprocess.run("chmod 700 ~/dotfiles/creds/.ssh/", check=True) # may require sudo
|
|
78
86
|
subprocess.run("chmod 600 ~/dotfiles/creds/.ssh/*", check=True)
|
|
87
|
+
print("✅ SSH permissions set successfully")
|
|
79
88
|
except Exception as e:
|
|
80
89
|
ERROR_LIST.append(e)
|
|
81
|
-
print("
|
|
90
|
+
print(f"❌ Error setting SSH permissions: {e}")
|
|
91
|
+
|
|
92
|
+
if system == "Linux":
|
|
93
|
+
print("\n📜 Setting executable permissions for scripts...")
|
|
94
|
+
Terminal().run(f'chmod +x {LIBRARY_ROOT.joinpath(f"scripts/{system.lower()}")} -R')
|
|
95
|
+
print("✅ Script permissions updated")
|
|
82
96
|
|
|
83
|
-
if system == "Linux": Terminal().run(f'chmod +x {LIBRARY_ROOT.joinpath(f"scripts/{system.lower()}")} -R')
|
|
84
|
-
print("\n\n", "*" * 200)
|
|
85
97
|
if len(ERROR_LIST) > 0:
|
|
86
|
-
print("
|
|
98
|
+
print(f"""
|
|
99
|
+
{'=' * 80}
|
|
100
|
+
❗ ERRORS ENCOUNTERED DURING PROCESSING
|
|
101
|
+
{'=' * 80}
|
|
102
|
+
{ERROR_LIST}
|
|
103
|
+
{'=' * 80}
|
|
104
|
+
""")
|
|
105
|
+
else:
|
|
106
|
+
print(f"""
|
|
107
|
+
{'=' * 80}
|
|
108
|
+
✅ All hardlinks created successfully!
|
|
109
|
+
{'=' * 80}
|
|
110
|
+
""")
|
|
87
111
|
|
|
88
112
|
|
|
89
113
|
def main(choice: Optional[str] = None):
|
|
90
114
|
console = Console()
|
|
91
115
|
print("\n")
|
|
92
|
-
console.rule("CREATING
|
|
116
|
+
console.rule("[bold blue]🔗 CREATING HARDLINKS 🔗")
|
|
93
117
|
main_symlinks(choice=choice)
|
|
94
118
|
|
|
95
119
|
print("\n")
|
|
96
|
-
console.rule("CREATING
|
|
120
|
+
console.rule("[bold green]🐚 CREATING SHELL PROFILE 🐚")
|
|
97
121
|
create_default_shell_profile()
|
|
122
|
+
|
|
123
|
+
print(f"""
|
|
124
|
+
{'=' * 80}
|
|
125
|
+
✨ Configuration setup complete! ✨
|
|
126
|
+
{'=' * 80}
|
|
127
|
+
""")
|
|
98
128
|
|
|
99
129
|
|
|
100
130
|
if __name__ == '__main__':
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
app_name,version,positive_pct,scan_time,app_path,app_url
|
|
2
|
+
broot,predefined_url,0.0,2025-03-04 14:58,/usr/local/bin/broot,
|
|
3
|
+
cloudreve,3.8.3,0.0,2025-03-04 14:59,/usr/local/bin/cloudreve,
|
|
4
|
+
fd,v10.2.0,0.0,2025-03-04 15:02,/usr/local/bin/fd,
|
|
5
|
+
cpufetch,v1.06,0.0,2025-03-04 15:04,/usr/local/bin/cpufetch,
|
|
6
|
+
gotty,v1.5.0,0.0,2025-03-04 15:07,/usr/local/bin/gotty,
|
|
7
|
+
viu,v1.5.0,0.0,2025-03-04 15:08,/usr/local/bin/viu,
|
|
8
|
+
mcfly,v0.9.2,0.0,2025-03-04 15:11,/usr/local/bin/mcfly,
|
|
9
|
+
rg,14.1.0,0.0,2025-03-04 15:14,/usr/local/bin/rg,
|
|
10
|
+
procs,v0.14.6,0.0,2025-03-04 15:16,/usr/local/bin/procs,
|
|
11
|
+
cloudflared,2024.8.3,0.0,2025-03-04 15:17,/usr/local/bin/cloudflared,
|
|
12
|
+
gh,v2.55.0,0.0,2025-03-04 15:20,/usr/local/bin/gh,
|
|
13
|
+
diskonaut,0.11.0,0.0,2025-03-04 15:22,/usr/local/bin/diskonaut,
|
|
14
|
+
zellij,v0.40.1,0.0,2025-03-04 15:37,/usr/local/bin/zellij,
|
|
15
|
+
hx,None,0.0,2025-03-04 15:38,/usr/local/bin/hx,
|
|
16
|
+
ouch,0.5.1,0.0,2025-03-04 15:40,/usr/local/bin/ouch,
|
|
17
|
+
fzf,v0.55.0,0.0,2025-03-04 15:43,/usr/local/bin/fzf,
|
|
18
|
+
tere,v1.5.1,0.0,2025-03-04 15:44,/usr/local/bin/tere,
|
|
19
|
+
zoxide,v0.9.4,0.0,2025-03-04 15:46,/usr/local/bin/zoxide,
|
|
20
|
+
watchexec,v2.1.2,0.0,2025-03-04 15:46,/usr/local/bin/watchexec,
|
|
21
|
+
pistol,v0.5.2,0.0,2025-03-04 15:47,/usr/local/bin/pistol,
|
|
22
|
+
gitui,v0.26.3,0.0,2025-03-04 15:51,/usr/local/bin/gitui,
|
|
23
|
+
starship,v1.20.1,0.0,2025-03-04 15:54,/usr/local/bin/starship,
|
|
24
|
+
lsd,v1.1.5,0.0,2025-03-04 15:55,/usr/local/bin/lsd,
|
|
25
|
+
rclone,v1.67.0,0.0,2025-03-04 15:56,/usr/local/bin/rclone,
|
|
26
|
+
topgrade,v15.0.0,0.0,2025-03-04 15:59,/usr/local/bin/topgrade,
|
|
27
|
+
onefetch,2.22.0,0.0,2025-03-04 16:01,/usr/local/bin/onefetch,
|
|
28
|
+
gum,v0.14.4,0.0,2025-03-04 16:02,/usr/local/bin/gum,
|
|
29
|
+
btop,v1.3.2,0.0,2025-03-04 16:04,/usr/local/bin/btop,
|
|
30
|
+
termusic,v0.9.1,0.0,2025-03-04 16:07,/usr/local/bin/termusic,
|
|
31
|
+
bat,v0.24.0,0.0,2025-03-04 16:08,/usr/local/bin/bat,
|
|
32
|
+
joshuto,predefined_url,0.0,2025-03-04 16:09,/usr/local/bin/joshuto,
|
|
33
|
+
fastfetch,2.23.0,0.0,2025-03-04 16:10,/usr/local/bin/fastfetch,
|
|
34
|
+
nu,0.97.1,0.0,2025-03-04 16:14,/usr/local/bin/nu,
|
|
35
|
+
btm,0.10.2,0.0,2025-03-04 16:15,/usr/local/bin/btm,
|
|
36
|
+
chatgpt,v1.3.5,0.0,2025-03-04 16:17,/usr/local/bin/chatgpt,
|
|
37
|
+
glow,v2.0.0,0.0,2025-03-04 16:19,/usr/local/bin/glow,
|
|
38
|
+
rga,v0.10.6,0.0,2025-03-04 16:22,/usr/local/bin/rga,
|
|
39
|
+
presenterm,v0.8.0,0.0,2025-03-04 16:25,/usr/local/bin/presenterm,
|
|
40
|
+
delta,0.18.1,0.0,2025-03-04 16:27,/usr/local/bin/delta,
|
|
41
|
+
mods,v1.5.0,0.0,2025-03-04 16:29,/usr/local/bin/mods,
|
|
42
|
+
dua,v2.29.2,0.0,2025-03-04 16:30,/usr/local/bin/dua,
|
|
43
|
+
ttyd,1.7.7,0.0,2025-03-04 16:43,/usr/local/bin/ttyd,
|
|
44
|
+
lf,r32,1.3,2025-03-04 16:45,/usr/local/bin/lf,
|
|
45
|
+
ytui-music,main,0.0,2025-03-04 16:46,/usr/local/bin/ytui-music,
|
|
46
|
+
mprocs,v0.7.1,0.0,2025-03-04 16:47,/usr/local/bin/mprocs,
|
|
47
|
+
yazi,v0.3.3,0.0,2025-03-04 16:48,/usr/local/bin/yazi,
|
|
48
|
+
xplr,v0.21.9,0.0,2025-03-04 16:50,/usr/local/bin/xplr,
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
| | app_name | version | positive_pct | scan_time | app_path | app_url |
|
|
2
|
+
|---:|:------------|:---------------|---------------:|:-----------------|:---------------------------|:----------|
|
|
3
|
+
| 0 | broot | predefined_url | 0 | 2025-03-04 14:58 | /usr/local/bin/broot | |
|
|
4
|
+
| 1 | cloudreve | 3.8.3 | 0 | 2025-03-04 14:59 | /usr/local/bin/cloudreve | |
|
|
5
|
+
| 2 | fd | v10.2.0 | 0 | 2025-03-04 15:02 | /usr/local/bin/fd | |
|
|
6
|
+
| 3 | cpufetch | v1.06 | 0 | 2025-03-04 15:04 | /usr/local/bin/cpufetch | |
|
|
7
|
+
| 4 | gotty | v1.5.0 | 0 | 2025-03-04 15:07 | /usr/local/bin/gotty | |
|
|
8
|
+
| 5 | viu | v1.5.0 | 0 | 2025-03-04 15:08 | /usr/local/bin/viu | |
|
|
9
|
+
| 6 | mcfly | v0.9.2 | 0 | 2025-03-04 15:11 | /usr/local/bin/mcfly | |
|
|
10
|
+
| 7 | rg | 14.1.0 | 0 | 2025-03-04 15:14 | /usr/local/bin/rg | |
|
|
11
|
+
| 8 | procs | v0.14.6 | 0 | 2025-03-04 15:16 | /usr/local/bin/procs | |
|
|
12
|
+
| 9 | cloudflared | 2024.8.3 | 0 | 2025-03-04 15:17 | /usr/local/bin/cloudflared | |
|
|
13
|
+
| 10 | gh | v2.55.0 | 0 | 2025-03-04 15:20 | /usr/local/bin/gh | |
|
|
14
|
+
| 11 | diskonaut | 0.11.0 | 0 | 2025-03-04 15:22 | /usr/local/bin/diskonaut | |
|
|
15
|
+
| 12 | zellij | v0.40.1 | 0 | 2025-03-04 15:37 | /usr/local/bin/zellij | |
|
|
16
|
+
| 13 | hx | None | 0 | 2025-03-04 15:38 | /usr/local/bin/hx | |
|
|
17
|
+
| 14 | ouch | 0.5.1 | 0 | 2025-03-04 15:40 | /usr/local/bin/ouch | |
|
|
18
|
+
| 15 | fzf | v0.55.0 | 0 | 2025-03-04 15:43 | /usr/local/bin/fzf | |
|
|
19
|
+
| 16 | tere | v1.5.1 | 0 | 2025-03-04 15:44 | /usr/local/bin/tere | |
|
|
20
|
+
| 17 | zoxide | v0.9.4 | 0 | 2025-03-04 15:46 | /usr/local/bin/zoxide | |
|
|
21
|
+
| 18 | watchexec | v2.1.2 | 0 | 2025-03-04 15:46 | /usr/local/bin/watchexec | |
|
|
22
|
+
| 19 | pistol | v0.5.2 | 0 | 2025-03-04 15:47 | /usr/local/bin/pistol | |
|
|
23
|
+
| 20 | gitui | v0.26.3 | 0 | 2025-03-04 15:51 | /usr/local/bin/gitui | |
|
|
24
|
+
| 21 | starship | v1.20.1 | 0 | 2025-03-04 15:54 | /usr/local/bin/starship | |
|
|
25
|
+
| 22 | lsd | v1.1.5 | 0 | 2025-03-04 15:55 | /usr/local/bin/lsd | |
|
|
26
|
+
| 23 | rclone | v1.67.0 | 0 | 2025-03-04 15:56 | /usr/local/bin/rclone | |
|
|
27
|
+
| 24 | topgrade | v15.0.0 | 0 | 2025-03-04 15:59 | /usr/local/bin/topgrade | |
|
|
28
|
+
| 25 | onefetch | 2.22.0 | 0 | 2025-03-04 16:01 | /usr/local/bin/onefetch | |
|
|
29
|
+
| 26 | gum | v0.14.4 | 0 | 2025-03-04 16:02 | /usr/local/bin/gum | |
|
|
30
|
+
| 27 | btop | v1.3.2 | 0 | 2025-03-04 16:04 | /usr/local/bin/btop | |
|
|
31
|
+
| 28 | termusic | v0.9.1 | 0 | 2025-03-04 16:07 | /usr/local/bin/termusic | |
|
|
32
|
+
| 29 | bat | v0.24.0 | 0 | 2025-03-04 16:08 | /usr/local/bin/bat | |
|
|
33
|
+
| 30 | joshuto | predefined_url | 0 | 2025-03-04 16:09 | /usr/local/bin/joshuto | |
|
|
34
|
+
| 31 | fastfetch | 2.23.0 | 0 | 2025-03-04 16:10 | /usr/local/bin/fastfetch | |
|
|
35
|
+
| 32 | nu | 0.97.1 | 0 | 2025-03-04 16:14 | /usr/local/bin/nu | |
|
|
36
|
+
| 33 | btm | 0.10.2 | 0 | 2025-03-04 16:15 | /usr/local/bin/btm | |
|
|
37
|
+
| 34 | chatgpt | v1.3.5 | 0 | 2025-03-04 16:17 | /usr/local/bin/chatgpt | |
|
|
38
|
+
| 35 | glow | v2.0.0 | 0 | 2025-03-04 16:19 | /usr/local/bin/glow | |
|
|
39
|
+
| 36 | rga | v0.10.6 | 0 | 2025-03-04 16:22 | /usr/local/bin/rga | |
|
|
40
|
+
| 37 | presenterm | v0.8.0 | 0 | 2025-03-04 16:25 | /usr/local/bin/presenterm | |
|
|
41
|
+
| 38 | delta | 0.18.1 | 0 | 2025-03-04 16:27 | /usr/local/bin/delta | |
|
|
42
|
+
| 39 | mods | v1.5.0 | 0 | 2025-03-04 16:29 | /usr/local/bin/mods | |
|
|
43
|
+
| 40 | dua | v2.29.2 | 0 | 2025-03-04 16:30 | /usr/local/bin/dua | |
|
|
44
|
+
| 41 | ttyd | 1.7.7 | 0 | 2025-03-04 16:43 | /usr/local/bin/ttyd | |
|
|
45
|
+
| 42 | lf | r32 | 1.3 | 2025-03-04 16:45 | /usr/local/bin/lf | |
|
|
46
|
+
| 43 | ytui-music | main | 0 | 2025-03-04 16:46 | /usr/local/bin/ytui-music | |
|
|
47
|
+
| 44 | mprocs | v0.7.1 | 0 | 2025-03-04 16:47 | /usr/local/bin/mprocs | |
|
|
48
|
+
| 45 | yazi | v0.3.3 | 0 | 2025-03-04 16:48 | /usr/local/bin/yazi | |
|
|
49
|
+
| 46 | xplr | v0.21.9 | 0 | 2025-03-04 16:50 | /usr/local/bin/xplr | |
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
app_name,version,positive_pct,app_path,app_url
|
machineconfig/profile/shell.py
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
"""shell
|
|
3
2
|
"""
|
|
4
3
|
|
|
@@ -25,14 +24,26 @@ def create_default_shell_profile():
|
|
|
25
24
|
if system == "Windows": source = f". {LIBRARY_ROOT.joinpath('settings/shells/pwsh/init.ps1').collapseuser().to_str().replace('~', '$HOME')}"
|
|
26
25
|
else: source = f"source {LIBRARY_ROOT.joinpath('settings/shells/bash/init.sh').collapseuser().to_str().replace('~', '$HOME')}"
|
|
27
26
|
|
|
28
|
-
if source in profile:
|
|
27
|
+
if source in profile:
|
|
28
|
+
print(f"""
|
|
29
|
+
╭{'─' * 78}╮
|
|
30
|
+
│ 🔄 PROFILE | Skipping init script sourcing - already present in profile │
|
|
31
|
+
╰{'─' * 78}╯
|
|
32
|
+
""")
|
|
29
33
|
else:
|
|
34
|
+
print(f"""
|
|
35
|
+
╭{'─' * 78}╮
|
|
36
|
+
│ 📝 PROFILE | Adding init script sourcing to profile │
|
|
37
|
+
╰{'─' * 78}╯
|
|
38
|
+
""")
|
|
30
39
|
profile += "\n" + source + "\n"
|
|
31
40
|
if system == "Linux":
|
|
32
41
|
res = Terminal().run("cat /proc/version").op
|
|
33
42
|
if "microsoft" in res.lower() or "wsl" in res.lower():
|
|
34
43
|
profile += "\ncd ~" # this is to make sure that the current dir is not in the windows file system, which is terribly slow and its a bad idea to be there anyway.
|
|
44
|
+
print("📌 WSL detected - adding 'cd ~' to profile to avoid Windows filesystem")
|
|
35
45
|
profile_path.create(parents_only=True).write_text(profile)
|
|
46
|
+
print("✅ Profile updated successfully")
|
|
36
47
|
|
|
37
48
|
|
|
38
49
|
def get_shell_profile_path():
|
|
@@ -45,7 +56,12 @@ def get_shell_profile_path():
|
|
|
45
56
|
raise ValueError(f"Could not get profile path for Windows. Got {res}")
|
|
46
57
|
elif system == "Linux": profile_path = P("~/.bashrc").expanduser()
|
|
47
58
|
else: raise ValueError(f"Not implemented for this system {system}")
|
|
48
|
-
|
|
59
|
+
|
|
60
|
+
print(f"""
|
|
61
|
+
╔{'═' * 78}╗
|
|
62
|
+
║ 🐚 SHELL PROFILE | Working with path: `{profile_path}`
|
|
63
|
+
╚{'═' * 78}╝
|
|
64
|
+
""")
|
|
49
65
|
return profile_path
|
|
50
66
|
|
|
51
67
|
|
|
@@ -53,7 +69,11 @@ def main_env_path(choice: Optional[str] = None, profile_path: Optional[str] = No
|
|
|
53
69
|
env_path = LIBRARY_ROOT.joinpath("profile/env_path.toml").readit()
|
|
54
70
|
dirs = env_path[f'path_{system.lower()}']['extension']
|
|
55
71
|
|
|
56
|
-
print("
|
|
72
|
+
print(f"""
|
|
73
|
+
╔{'═' * 78}╗
|
|
74
|
+
║ 🔍 ENVIRONMENT | Current PATH variables:
|
|
75
|
+
╚{'═' * 78}╝
|
|
76
|
+
""")
|
|
57
77
|
P.get_env().PATH.print()
|
|
58
78
|
|
|
59
79
|
if choice is None:
|
|
@@ -63,15 +83,24 @@ def main_env_path(choice: Optional[str] = None, profile_path: Optional[str] = No
|
|
|
63
83
|
if str(choice) != "all": dirs = [choice]
|
|
64
84
|
if choice == "none(EXIT)": return
|
|
65
85
|
|
|
86
|
+
print(f"\n📌 Adding directories to PATH: {dirs}")
|
|
66
87
|
addition = PathVar.append_temporarily(dirs=dirs)
|
|
67
88
|
profile_path_obj = P(profile_path) if isinstance(profile_path, str) else get_shell_profile_path()
|
|
68
89
|
profile_path_obj.copy(name=profile_path_obj.name + ".orig_" + randstr())
|
|
90
|
+
print(f"💾 Created backup of profile: {profile_path_obj.name}.orig_*")
|
|
69
91
|
profile_path_obj.modify_text(addition, addition, replace_line=False, notfound_append=True)
|
|
92
|
+
print("✅ PATH variables added to profile successfully")
|
|
70
93
|
|
|
71
94
|
|
|
72
95
|
def main_add_sources_to_shell_profile(profile_path: Optional[str] = None, choice: Optional[str] = None):
|
|
73
96
|
sources: list[str] = LIBRARY_ROOT.joinpath("profile/sources.toml").readit()[system.lower()]['files']
|
|
74
97
|
|
|
98
|
+
print(f"""
|
|
99
|
+
╭{'─' * 78}╮
|
|
100
|
+
│ 🔄 Adding sources to shell profile │
|
|
101
|
+
╰{'─' * 78}╯
|
|
102
|
+
""")
|
|
103
|
+
|
|
75
104
|
if choice is None:
|
|
76
105
|
choice_obj = display_options(msg="Which patch to add?", options=sources + ["all", "none(EXIT)"], default="none(EXIT)", multi=True)
|
|
77
106
|
if isinstance(choice_obj, str):
|
|
@@ -92,22 +121,39 @@ def main_add_sources_to_shell_profile(profile_path: Optional[str] = None, choice
|
|
|
92
121
|
file = P(tmp).collapseuser() # this makes the shell profile interuseable across machines.
|
|
93
122
|
file = file.as_posix() if system == "Linux" else str(file)
|
|
94
123
|
if file not in profile:
|
|
95
|
-
if system == "Windows":
|
|
96
|
-
|
|
124
|
+
if system == "Windows":
|
|
125
|
+
profile += f"\n. {file}"
|
|
126
|
+
print(f"➕ Added PowerShell source: {file}")
|
|
127
|
+
elif system == "Linux":
|
|
128
|
+
profile += f"\nsource {file}"
|
|
129
|
+
print(f"➕ Added Bash source: {file}")
|
|
97
130
|
else: raise ValueError(f"Not implemented for this system {system}")
|
|
98
|
-
else:
|
|
131
|
+
else:
|
|
132
|
+
print(f"⏭️ Source already present: {file}")
|
|
133
|
+
|
|
99
134
|
profile_path_obj.write_text(profile)
|
|
135
|
+
print("✅ Shell profile updated with sources")
|
|
100
136
|
|
|
101
137
|
|
|
102
138
|
def main_add_patches_to_shell_profile(profile_path: Optional[str] = None, choice: Optional[str] = None):
|
|
103
139
|
patches: list[str] = list(LIBRARY_ROOT.joinpath(f"profile/patches/{system.lower()}").search().apply(lambda x: x.as_posix()))
|
|
140
|
+
|
|
141
|
+
print(f"""
|
|
142
|
+
╭{'─' * 78}╮
|
|
143
|
+
│ 🩹 Adding patches to shell profile │
|
|
144
|
+
╰{'─' * 78}╯
|
|
145
|
+
""")
|
|
146
|
+
|
|
104
147
|
if choice is None:
|
|
105
148
|
choice_chosen = display_options(msg="Which patch to add?", options=list(patches) + ["all", "none(EXIT)"], default="none(EXIT)", multi=False)
|
|
106
149
|
assert isinstance(choice_chosen, str), f"Choice must be a string or a list of strings, not {type(choice)}"
|
|
107
150
|
choice = choice_chosen
|
|
108
151
|
if choice == "none(EXIT)": return None
|
|
109
|
-
elif str(choice) == "all":
|
|
110
|
-
|
|
152
|
+
elif str(choice) == "all":
|
|
153
|
+
print("📌 Adding all patches to profile")
|
|
154
|
+
else:
|
|
155
|
+
patches = [choice]
|
|
156
|
+
print(f"📌 Adding selected patch: {choice}")
|
|
111
157
|
|
|
112
158
|
profile_path_obj = P(profile_path) if isinstance(profile_path, str) else get_shell_profile_path()
|
|
113
159
|
profile = profile_path_obj.read_text()
|
|
@@ -115,15 +161,20 @@ def main_add_patches_to_shell_profile(profile_path: Optional[str] = None, choice
|
|
|
115
161
|
for patch_path in patches:
|
|
116
162
|
patch_path_obj = P(patch_path)
|
|
117
163
|
patch = patch_path_obj.read_text()
|
|
118
|
-
if patch in profile:
|
|
119
|
-
|
|
164
|
+
if patch in profile:
|
|
165
|
+
print(f"⏭️ Patch already present: {patch_path_obj.name}")
|
|
166
|
+
else:
|
|
167
|
+
profile += "\n" + patch
|
|
168
|
+
print(f"➕ Added patch: {patch_path_obj.name}")
|
|
120
169
|
|
|
121
170
|
if system == "Linux":
|
|
122
171
|
res = Terminal().run("cat /proc/version").op
|
|
123
172
|
if "microsoft" in res.lower() or "wsl" in res.lower():
|
|
124
173
|
profile += "\ncd ~" # this is to make sure that the current dir is not in the windows file system, which is terribly slow and its a bad idea to be there anyway.
|
|
174
|
+
print("📌 WSL detected - adding 'cd ~' to profile to avoid Windows filesystem")
|
|
125
175
|
|
|
126
176
|
profile_path_obj.write_text(profile)
|
|
177
|
+
print("✅ Shell profile updated with patches")
|
|
127
178
|
|
|
128
179
|
|
|
129
180
|
if __name__ == '__main__':
|
|
Binary file
|