machineconfig 5.42__py3-none-any.whl → 5.44__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.

@@ -45,10 +45,10 @@ def create_default_shell_profile() -> None:
45
45
 
46
46
  if system == "Windows":
47
47
  init_script = PathExtended(CONFIG_ROOT).joinpath("settings/shells/pwsh/init.ps1")
48
- source_line = f""". {str(init_script.collapseuser()).replace("~", "$HOME")}"""
48
+ source_line = f""". {str(init_script.collapseuser(placeholder="$HOME"))}"""
49
49
  else:
50
50
  init_script = PathExtended(CONFIG_ROOT).joinpath("settings/shells/bash/init.sh")
51
- source_line = f"""source {str(init_script).replace("~", "$HOME")}"""
51
+ source_line = f"""source {str(init_script.collapseuser(placeholder="$HOME"))}"""
52
52
 
53
53
  was_shell_updated = False
54
54
  if source_line in shell_profile:
@@ -49,3 +49,13 @@ def pwsh_theme():
49
49
  file = Path(themes.__file__).parent / "choose_pwsh_theme.ps1"
50
50
  import subprocess
51
51
  subprocess.run(["pwsh", "-File", str(file)])
52
+
53
+ @config_apps.command(no_args_is_help=False)
54
+ def copy_assets(which: Literal["scripts", "settings", "both"] = typer.Option(..., "--which", "-w", help="Which assets to copy")):
55
+ """🔗 Copy asset files from library to machine."""
56
+ import machineconfig.profile.create_helper as create_helper
57
+ if which == "both":
58
+ create_helper.copy_assets_to_machine(which="scripts")
59
+ create_helper.copy_assets_to_machine(which="settings")
60
+ else:
61
+ create_helper.copy_assets_to_machine(which=which)
@@ -21,18 +21,18 @@ def status():
21
21
  import machineconfig.scripts.python.devops_helpers.devops_status as helper
22
22
  helper.main()
23
23
  @cli_app.command()
24
- def clone():
24
+ def install():
25
25
  """📋 CLONE machienconfig locally and incorporate to shell profile for faster execution and nightly updates."""
26
- import platform
27
26
  from machineconfig.utils.code import run_shell_script
28
27
  from machineconfig.profile.create_shell_profile import create_default_shell_profile
28
+ # from machineconfig.profile.create_links_export import main_public_from_parser
29
+ create_default_shell_profile()
30
+ # main_public_from_parser()
31
+ import platform
29
32
  if platform.system() == "Windows":
30
- from machineconfig.setup_windows import MACHINECONFIG
31
- create_default_shell_profile()
33
+ run_shell_script(r"""$HOME\.local\bin\uv.exe tool install machineconfig""")
32
34
  else:
33
- from machineconfig.setup_linux import MACHINECONFIG
34
- create_default_shell_profile()
35
- run_shell_script(MACHINECONFIG.read_text(encoding="utf-8"))
35
+ run_shell_script("""$HOME/.local/bin/uv tool install machineconfig""")
36
36
 
37
37
  @cli_app.command(no_args_is_help=False)
38
38
  def navigate():
@@ -28,10 +28,6 @@ add_to_path_if_not_already \
28
28
  . $CONFIG_ROOT/settings/lf/linux/exe/lfcd.sh
29
29
  . $CONFIG_ROOT/settings/tere/terecd.sh
30
30
 
31
- if [ -d $CONFIG_ROOT ]; then
32
- source $CONFIG_ROOT/settings/shells/bash/commands.sh
33
- fi
34
-
35
31
  # set alias l to lsd -la
36
32
  alias l='lsd -la'
37
33
  alias gcs='gh copilot suggest -t shell'
@@ -33,9 +33,6 @@ Add-ToPathIfNotAlready -Directories @(
33
33
  . $MAC_ROOT\src\machineconfig\settings\lf\windows\lfcd.ps1
34
34
  . $MAC_ROOT\src\machineconfig\settings\tere\terecd.ps1
35
35
 
36
- if (Test-Path "$MAC_ROOT" -PathType Container) {
37
- . "$MAC_ROOT\src\machineconfig\settings\shells\pwsh\commands.ps1"
38
- }
39
36
 
40
37
  function lsdla { lsd -la }
41
38
  Set-Alias -Name l -Value lsdla -Option AllScope
@@ -2,7 +2,6 @@
2
2
  from pathlib import Path
3
3
 
4
4
  APPS = Path(__file__).parent.joinpath("apps.sh")
5
- MACHINECONFIG = Path(__file__).parent.joinpath("machineconfig.sh")
6
5
  UV = Path(__file__).parent.joinpath("uv.sh")
7
6
 
8
7
  APPS_DESKTOP = Path(__file__).parent.joinpath("apps_desktop.sh")
@@ -2,7 +2,6 @@
2
2
  from pathlib import Path
3
3
 
4
4
  APPS = Path(__file__).parent.joinpath("apps.ps1")
5
- MACHINECONFIG = Path(__file__).parent.joinpath("machineconfig.ps1")
6
5
  UV = Path(__file__).parent.joinpath("uv.ps1")
7
6
 
8
7
  DOCKER = Path(__file__).parent.joinpath("others/docker.ps1")
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: machineconfig
3
- Version: 5.42
3
+ Version: 5.44
4
4
  Summary: Dotfiles management package
5
5
  Author-email: Alex Al-Saffar <programmer@usa.com>
6
6
  License: Apache 2.0
@@ -95,7 +95,7 @@ machineconfig/profile/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3h
95
95
  machineconfig/profile/create_helper.py,sha256=IKUspFNg4LDeQO4t3elt9rI9Hhi8b37ZHqBkyBNU6Qk,1018
96
96
  machineconfig/profile/create_links.py,sha256=yBqfcujukllbHI1P8M5XDbLXMZ_gb38ZvQK901EPbaA,13962
97
97
  machineconfig/profile/create_links_export.py,sha256=OEmuJE-F7FZX5xvOl1rqJzHg_BWtPKCiWdrq4RPOobs,3173
98
- machineconfig/profile/create_shell_profile.py,sha256=bkWYgxedGU1BIvvkaVQjMib5p2d80dNWWSXP3pINDV0,9529
98
+ machineconfig/profile/create_shell_profile.py,sha256=ifsEAK90ovvY7ftyxuY5-Xh8f2JuQYX7IMYUXp6x2Sw,9538
99
99
  machineconfig/profile/records/generic/shares.toml,sha256=FduDztfyQtZcr5bfx-RSKhEEweweQSWfVXkKWnx8hCY,143
100
100
  machineconfig/profile/records/linux/apps_summary_report.csv,sha256=pw9djvaRUPalKDLn2sl3odcbD2_Zx3aEupsQ8UPfaaY,2738
101
101
  machineconfig/profile/records/linux/apps_summary_report.md,sha256=l77oofA6Rliql0ZgKGIZi8bstFoGyyGTxeS8p2PtOj0,5634
@@ -166,12 +166,12 @@ machineconfig/scripts/python/croshell_helpers/start_slidev.py,sha256=HfJReOusTPh
166
166
  machineconfig/scripts/python/croshell_helpers/viewer.py,sha256=heQNjB9fwn3xxbPgMofhv1Lp6Vtkl76YjjexWWBM0pM,2041
167
167
  machineconfig/scripts/python/croshell_helpers/viewer_template.py,sha256=ve3Q1-iKhCLc0VJijKvAeOYp2xaFOeIOC_XW956GWCc,3944
168
168
  machineconfig/scripts/python/devops_helpers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
169
- machineconfig/scripts/python/devops_helpers/cli_config.py,sha256=7ro186iKHCxu7HJWTCJGFwryIP4LuERh2BzyTjrLB7k,3021
169
+ machineconfig/scripts/python/devops_helpers/cli_config.py,sha256=lIEKz0v3ANvTHOrcQzHD5Th8gXbgOTShgnnUvPZG5GA,3534
170
170
  machineconfig/scripts/python/devops_helpers/cli_config_dotfile.py,sha256=rjTys4FNf9_feP9flWM7Zvq17dxWmetSiGaHPxp25nk,2737
171
171
  machineconfig/scripts/python/devops_helpers/cli_data.py,sha256=f_2espL92n6SoNb5sFVMvrK7LA29HzfrFAKhxKaud1M,510
172
172
  machineconfig/scripts/python/devops_helpers/cli_nw.py,sha256=4Ko4dA8YXqiRJvuOuwZv3YOvnSJQ7-A11ezJ8EztDis,2068
173
173
  machineconfig/scripts/python/devops_helpers/cli_repos.py,sha256=GQJaCSnvNbIo_CmpYBDZOUyi0kPgn8VCr3a5Dnfy0_w,9681
174
- machineconfig/scripts/python/devops_helpers/cli_self.py,sha256=kYqTVzzTYjjYj0Zdvh49VL69Xr3pYm5HPm1JA77ORME,1999
174
+ machineconfig/scripts/python/devops_helpers/cli_self.py,sha256=GfUph3LjXKruT6C50AJ8JNTLgJOJDBwe17Jp2MEMOW0,2051
175
175
  machineconfig/scripts/python/devops_helpers/cli_share_server.py,sha256=285OzxttCx7YsrpOkaapMKP1eVGHmG5TkkaSQnY7i3c,3976
176
176
  machineconfig/scripts/python/devops_helpers/cli_terminal.py,sha256=k_PzXaiGyE0vXr0Ii1XcJz2A7UvyPJrR31TRWt4RKRI,6019
177
177
  machineconfig/scripts/python/devops_helpers/devops_add_identity.py,sha256=wvjNgqsLmqD2SxbNCW_usqfp0LI-TDvcJJKGOWt2oFw,3775
@@ -303,7 +303,7 @@ machineconfig/settings/rofi/config.rasi,sha256=nDX5B8wdXQYF1fwiOTBRJUI4l_gQbYaLa
303
303
  machineconfig/settings/rofi/config_default.rasi,sha256=rTfKnC-bZuWX1l-lWQACCUOE1ShhkfykAxtXX9PlQHE,4694
304
304
  machineconfig/settings/shells/alacritty/alacritty.toml,sha256=EbL-2Y4QunW1pvRWB2yuLCw8MMPONheJr5LFoWRieUQ,871
305
305
  machineconfig/settings/shells/alacritty/alacritty.yml,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
306
- machineconfig/settings/shells/bash/init.sh,sha256=B9nBiRTaQHe1r3pXl96X8VC_xkRQjj07C1H6Qh0SHB8,2226
306
+ machineconfig/settings/shells/bash/init.sh,sha256=cWksbJL0HBIBudVJV9GIYhbxjpGCAz7zdiQX6CAprwY,2136
307
307
  machineconfig/settings/shells/hyper/.hyper.js,sha256=h-HqeYlvPvPD4Ee7828Cxo87uVkzbMGJFqXTZIWoegw,8884
308
308
  machineconfig/settings/shells/ipy/profiles/default/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
309
309
  machineconfig/settings/shells/ipy/profiles/default/startup/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -311,7 +311,7 @@ machineconfig/settings/shells/ipy/profiles/default/startup/playext.py,sha256=OJ3
311
311
  machineconfig/settings/shells/kitty/kitty.conf,sha256=lDdx-dUX3jbKGb3BkS2f2TOpmgGiS-CI-_-lFvhD5A4,52870
312
312
  machineconfig/settings/shells/nushell/config.nu,sha256=ug0E0NXNlCzgStScFN6VTsAkUaOTPJZB69P-LS5L2VE,1047
313
313
  machineconfig/settings/shells/nushell/env.nu,sha256=4VmaXb-qP6qnMD5TPzkXMLFNlB5QC4l9HEzCvXZE2GQ,315
314
- machineconfig/settings/shells/pwsh/init.ps1,sha256=Er5PwndNtkmyIIA7bYhnDnuZGhTWZtuOrJXyJ_UxcQE,2570
314
+ machineconfig/settings/shells/pwsh/init.ps1,sha256=FIVE6cDyh4MPhVR-Jaht9YlgKfbknklGp7pl_atRUCo,2449
315
315
  machineconfig/settings/shells/pwsh/profile.ps1,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
316
316
  machineconfig/settings/shells/starship/starship.toml,sha256=5rQTY7ZpKnrnhgu2Y9OJKUYMz5lPLIftO1p1VRuVZwQ,1150
317
317
  machineconfig/settings/shells/vtm/settings.xml,sha256=5TNXd-i0eUGo2w3tuhY9aOkwoJdqih8_HO_U6uL2Dts,18262
@@ -338,7 +338,7 @@ machineconfig/settings/zellij/layouts/panes.kdl,sha256=KlhKtelBy4Z2ENV_pix4xE7NH
338
338
  machineconfig/settings/zellij/layouts/st.kdl,sha256=QXLRK7Wx05aKbKRHVmm4RspLYzPmEa44JMK1TwXQk58,523
339
339
  machineconfig/settings/zellij/layouts/st2.kdl,sha256=1FKTH3qQWYMWp_wPMreP7fKOTlVd4cfBy3J8fv4zCBc,1489
340
340
  machineconfig/settings/zellij/layouts/stacked_panes.kdl,sha256=usY8kKKwX1KUMXnWDivPg0i0drpM1Biw-tOnNZVjiZU,163
341
- machineconfig/setup_linux/__init__.py,sha256=QSu4qc1pIBd483WdakKFN3JW8iI6YCv2hWl8Kg_ymsw,381
341
+ machineconfig/setup_linux/__init__.py,sha256=7VLvb9uj9XJYtlYu9lgavQuxjX3tVCE9i8WdOjB3Qa4,314
342
342
  machineconfig/setup_linux/apps.sh,sha256=dP_caRCXwtQe9XjAWiyV4KU0TxOdn07H8fl07DASdZg,3329
343
343
  machineconfig/setup_linux/apps_desktop.sh,sha256=L2b_pcw3GiQdoAaoMO7J4bVvUoG5Pnuy9kDhV8JqprU,3325
344
344
  machineconfig/setup_linux/apps_gui.sh,sha256=lFPYq7H2bRogPwW6QoEuSr9GnTjHS-jRM_eYg2rjOmM,2301
@@ -349,7 +349,7 @@ machineconfig/setup_linux/ssh/openssh_all.sh,sha256=3dg6HEUFbHQOzLfSAtzK_D_GB8rG
349
349
  machineconfig/setup_linux/ssh/openssh_wsl.sh,sha256=1eeRGrloVB34K5z8yWVUMG5b9pV-WBfHgV9jqXiYgCQ,1398
350
350
  machineconfig/setup_linux/web_shortcuts/android.sh,sha256=gzep6bBhK7FCBvGcXK0fdJCtkSfBOftt0aFyDZq_eMs,68
351
351
  machineconfig/setup_linux/web_shortcuts/interactive.sh,sha256=MWVH5wzMJuk2WnsfJeui1JbC5HI2Ux4875d1kO-5tp4,926
352
- machineconfig/setup_windows/__init__.py,sha256=wVpUqoLqXl-_-bRd7gZw_PJ7WZ2GtOqfFMzo_lIwieg,454
352
+ machineconfig/setup_windows/__init__.py,sha256=NnSVZkIBoxoMgkj-_KAqGonH3YziBIWXOKDEcmNAGTY,386
353
353
  machineconfig/setup_windows/apps.ps1,sha256=G5GqZ9G0aiQr_A-HaahtRdzpaTTdW6n3DRKMZWDTSPc,11214
354
354
  machineconfig/setup_windows/uv.ps1,sha256=mzkFJUQ57dukVQtY7WqAQIVUDMcixnkir8aNM_TYrl4,350
355
355
  machineconfig/setup_windows/others/docker.ps1,sha256=M8NfsSxH8YlmY92J4rSe1xWOwTW8IFrdgb8cI8Riu2E,311
@@ -398,8 +398,8 @@ machineconfig/utils/schemas/fire_agents/fire_agents_input.py,sha256=Xbi59rU35AzR
398
398
  machineconfig/utils/schemas/installer/installer_types.py,sha256=QClRY61QaduBPJoSpdmTIdgS9LS-RvE-QZ-D260tD3o,1214
399
399
  machineconfig/utils/schemas/layouts/layout_types.py,sha256=TcqlZdGVoH8htG5fHn1KWXhRdPueAcoyApppZsPAPto,2020
400
400
  machineconfig/utils/schemas/repos/repos_types.py,sha256=ECVr-3IVIo8yjmYmVXX2mnDDN1SLSwvQIhx4KDDQHBQ,405
401
- machineconfig-5.42.dist-info/METADATA,sha256=CbP1xQXQovejO7eT_nGGVPT1Ke-NAfD7mGSMwEP-Pbc,3111
402
- machineconfig-5.42.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
403
- machineconfig-5.42.dist-info/entry_points.txt,sha256=z7b9guivf0GSKUG6b8ALgbDoRg2LuPfkGP_p-PxgX9g,469
404
- machineconfig-5.42.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
405
- machineconfig-5.42.dist-info/RECORD,,
401
+ machineconfig-5.44.dist-info/METADATA,sha256=uqskiIsubxV2ff2s9y87jNHo7D-prnwk6p71cKOtwMs,3111
402
+ machineconfig-5.44.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
403
+ machineconfig-5.44.dist-info/entry_points.txt,sha256=z7b9guivf0GSKUG6b8ALgbDoRg2LuPfkGP_p-PxgX9g,469
404
+ machineconfig-5.44.dist-info/top_level.txt,sha256=porRtB8qms8fOIUJgK-tO83_FeH6Bpe12oUVC670teA,14
405
+ machineconfig-5.44.dist-info/RECORD,,