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

Files changed (57) hide show
  1. machineconfig/cluster/sessions_managers/zellij_utils/process_monitor.py +2 -2
  2. machineconfig/jobs/installer/check_installations.py +2 -2
  3. machineconfig/profile/create_helper.py +26 -0
  4. machineconfig/profile/{create.py → create_links.py} +6 -6
  5. machineconfig/profile/{create_frontend.py → create_links_export.py} +6 -10
  6. machineconfig/profile/{shell.py → create_shell_profile.py} +12 -37
  7. machineconfig/scripts/linux/z_ls +2 -2
  8. machineconfig/scripts/python/agents.py +0 -1
  9. machineconfig/scripts/python/ai/initai.py +3 -4
  10. machineconfig/scripts/python/ai/scripts/lint_and_type_check.ps1 +0 -1
  11. machineconfig/scripts/python/ai/scripts/lint_and_type_check.sh +0 -1
  12. machineconfig/scripts/python/croshell.py +8 -1
  13. machineconfig/scripts/python/croshell_helpers/start_slidev.py +2 -2
  14. machineconfig/scripts/python/devops.py +2 -2
  15. machineconfig/scripts/python/devops_helpers/cli_config.py +9 -10
  16. machineconfig/scripts/python/devops_helpers/cli_config_dotfile.py +3 -3
  17. machineconfig/scripts/python/devops_helpers/cli_self.py +17 -4
  18. machineconfig/scripts/python/devops_helpers/devops_status.py +7 -80
  19. machineconfig/scripts/python/devops_helpers/devops_update_repos.py +1 -1
  20. machineconfig/scripts/python/fire_jobs.py +4 -1
  21. machineconfig/scripts/python/ftpx.py +0 -1
  22. machineconfig/scripts/python/helpers_fire/template.ps1 +1 -1
  23. machineconfig/scripts/python/helpers_fire/template.sh +1 -1
  24. machineconfig/scripts/python/helpers_repos/cloud_repo_sync.py +3 -3
  25. machineconfig/scripts/python/interactive.py +2 -2
  26. machineconfig/scripts/python/nw/mount_nfs +1 -1
  27. machineconfig/scripts/python/repos_helpers/count_lines_frontend.py +1 -1
  28. machineconfig/scripts/python/repos_helpers/entrypoint.py +2 -2
  29. machineconfig/scripts/python/repos_helpers/record.py +2 -2
  30. machineconfig/scripts/python/sessions_helpers/sessions_multiprocess.py +3 -1
  31. machineconfig/scripts/windows/mounts/mount_nfs.ps1 +1 -3
  32. machineconfig/scripts/windows/mounts/mount_ssh.ps1 +1 -1
  33. machineconfig/settings/lf/linux/lfrc +4 -5
  34. machineconfig/settings/lf/windows/lfrc +4 -18
  35. machineconfig/settings/lvim/windows/archive/config_additional.lua +0 -6
  36. machineconfig/settings/pistol/pistol.conf +1 -1
  37. machineconfig/settings/shells/bash/init.sh +7 -11
  38. machineconfig/settings/shells/pwsh/init.ps1 +8 -6
  39. machineconfig/settings/svim/linux/init.toml +0 -4
  40. machineconfig/settings/svim/windows/init.toml +0 -3
  41. machineconfig/setup_linux/web_shortcuts/interactive.sh +22 -0
  42. machineconfig/setup_windows/web_shortcuts/interactive.ps1 +34 -1
  43. machineconfig/utils/source_of_truth.py +2 -4
  44. machineconfig/utils/ssh.py +1 -1
  45. {machineconfig-5.38.dist-info → machineconfig-5.40.dist-info}/METADATA +2 -1
  46. {machineconfig-5.38.dist-info → machineconfig-5.40.dist-info}/RECORD +49 -56
  47. machineconfig/scripts/windows/mounts/pomodoro.ps1 +0 -1
  48. machineconfig/scripts/windows/mounts/reload_path.ps1 +0 -3
  49. machineconfig/scripts/windows/mounts/share_nfs.ps1 +0 -0
  50. machineconfig/scripts/windows/start_slidev.ps1 +0 -1
  51. machineconfig/settings/shells/bash/commands.sh +0 -24
  52. machineconfig/settings/shells/pwsh/commands.ps1 +0 -33
  53. machineconfig/setup_linux/machineconfig.sh +0 -20
  54. machineconfig/setup_windows/machineconfig.ps1 +0 -29
  55. {machineconfig-5.38.dist-info → machineconfig-5.40.dist-info}/WHEEL +0 -0
  56. {machineconfig-5.38.dist-info → machineconfig-5.40.dist-info}/entry_points.txt +0 -0
  57. {machineconfig-5.38.dist-info → machineconfig-5.40.dist-info}/top_level.txt +0 -0
@@ -3,7 +3,7 @@
3
3
  # set -e # Exit immediately if a command exits with a non-zero status.
4
4
 
5
5
  JOB_NAME="outpatient_mapping"
6
- REPO_ROOT="$HOME/code/machineconfig"
6
+ REPO_ROOT="$HOME/code/ machineconfig"
7
7
  CONTEXT_PATH="$REPO_ROOT/src/machineconfig/scripts/python/fire_jobs.py"
8
8
  PROMPT_PATH="$REPO_ROOT/src/machineconfig/scripts/python/helpers_fire/prompt.txt"
9
9
 
@@ -5,7 +5,7 @@ import typer
5
5
 
6
6
  from machineconfig.utils.path_extended import PathExtended
7
7
  from machineconfig.utils.terminal import Response
8
- from machineconfig.utils.source_of_truth import CONFIG_PATH, DEFAULTS_PATH
8
+ from machineconfig.utils.source_of_truth import CONFIG_ROOT, DEFAULTS_PATH
9
9
  from machineconfig.utils.code import get_shell_file_executing_python_script, write_shell_script_to_file
10
10
 
11
11
  import platform
@@ -38,8 +38,8 @@ def main(
38
38
  repo_local_root = PathExtended.cwd() if repo is None else PathExtended(repo).expanduser().absolute()
39
39
  repo_local_obj = git.Repo(repo_local_root, search_parent_directories=True)
40
40
  repo_local_root = PathExtended(repo_local_obj.working_dir) # cwd might have been in a sub directory of repo_root, so its better to redefine it.
41
- PathExtended(CONFIG_PATH).joinpath("remote").mkdir(parents=True, exist_ok=True)
42
- repo_remote_root = PathExtended(CONFIG_PATH).joinpath("remote", repo_local_root.rel2home()) # .delete(sure=True)
41
+ PathExtended(CONFIG_ROOT).joinpath("remote").mkdir(parents=True, exist_ok=True)
42
+ repo_remote_root = PathExtended(CONFIG_ROOT).joinpath("remote", repo_local_root.rel2home()) # .delete(sure=True)
43
43
 
44
44
  try:
45
45
  console.print(Panel("📥 DOWNLOADING REMOTE REPOSITORY", title_align="left", border_style="blue"))
@@ -150,8 +150,8 @@ Set-Service -Name sshd -StartupType 'Automatic'"""
150
150
  console.print(Panel("🐚 [bold green]SHELL PROFILE[/bold green]\n[italic]Shell configuration setup[/italic]", border_style="green"))
151
151
  console.print("🔧 Configuring shell profile", style="bold cyan")
152
152
  try:
153
- from machineconfig.profile.shell import create_default_shell_profile
154
- create_default_shell_profile(method="copy")
153
+ from machineconfig.profile.create_shell_profile import create_default_shell_profile
154
+ create_default_shell_profile()
155
155
  console.print("✅ Shell profile configured successfully", style="bold green")
156
156
  except Exception as e:
157
157
  console.print(f"❌ Error configuring shell profile: {e}", style="bold red")
@@ -5,7 +5,7 @@
5
5
  # mkdir ~/data/local
6
6
  # sudo mount -o nolock,noatime,nodiratime,proto=tcp,timeo=600,retrans=2,noac alex-p51s-5:/home/alex/data/local ./data/local
7
7
 
8
- uv run --python 3.13 --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.mount_nfs
8
+ uv run --python 3.13 --with machineconfig python -m machineconfig.scripts.python.mount_nfs
9
9
  # Check if remote server is reachable and share folder exists
10
10
  if ! ping -c 1 "$remote_server" &> /dev/null; then
11
11
  echo "💥 Error: Remote server $remote_server is not reachable."
@@ -6,7 +6,7 @@ def analyze_repo_development(repo_path: str = typer.Argument(..., help="Path to
6
6
  from machineconfig.scripts.python.repos_helpers import count_lines
7
7
  from pathlib import Path
8
8
  count_lines_path = Path(count_lines.__file__)
9
- # --project $HOME/code/machineconfig --group plot
9
+ # --project $HOME/code/ machineconfig --group plot
10
10
  cmd = f"""uv run --python 3.13 --with machineconfig[plot] {count_lines_path} analyze-over-time {repo_path}"""
11
11
  from machineconfig.utils.code import run_shell_script
12
12
  run_shell_script(cmd)
@@ -3,7 +3,7 @@
3
3
 
4
4
  from typing import Optional
5
5
  from pathlib import Path
6
- from machineconfig.utils.source_of_truth import CONFIG_PATH, DEFAULTS_PATH
6
+ from machineconfig.utils.source_of_truth import CONFIG_ROOT, DEFAULTS_PATH
7
7
 
8
8
  import typer
9
9
 
@@ -39,7 +39,7 @@ def resolve_spec_path(directory: Optional[str], cloud: Optional[str]) -> Path:
39
39
  repos_root = resolve_directory(directory)
40
40
  from machineconfig.utils.path_extended import PathExtended
41
41
  if not repos_root.exists() or repos_root.name != "repos.json":
42
- candidate = Path(CONFIG_PATH).joinpath("repos").joinpath(PathExtended(repos_root).rel2home()).joinpath("repos.json")
42
+ candidate = Path(CONFIG_ROOT).joinpath("repos").joinpath(PathExtended(repos_root).rel2home()).joinpath("repos.json")
43
43
  repos_root = candidate
44
44
  if not repos_root.exists():
45
45
  cloud_name: Optional[str]
@@ -3,7 +3,7 @@ from pathlib import Path
3
3
  from machineconfig.utils.schemas.repos.repos_types import GitVersionInfo, RepoRecordDict, RepoRemote
4
4
 
5
5
  from machineconfig.utils.schemas.repos.repos_types import RepoRecordFile
6
- from machineconfig.utils.source_of_truth import CONFIG_PATH
6
+ from machineconfig.utils.source_of_truth import CONFIG_ROOT
7
7
  from machineconfig.utils.io import save_json
8
8
 
9
9
  from typing import Optional
@@ -242,7 +242,7 @@ def main(repos_root: Path):
242
242
  tree_structure = build_tree_structure(repo_records, repos_root)
243
243
  print(tree_structure)
244
244
 
245
- save_path = CONFIG_PATH.joinpath("repos").joinpath(repos_root.rel2home()).joinpath("repos.json")
245
+ save_path = CONFIG_ROOT.joinpath("repos").joinpath(repos_root.rel2home()).joinpath("repos.json")
246
246
  save_json(obj=res, path=save_path, indent=4)
247
247
  pprint(f"📁 Result saved at {PathExtended(save_path)}")
248
248
  print(">>>>>>>>> Finished Recording")
@@ -36,8 +36,10 @@ def create_from_function(
36
36
  ve_root_from_file, ipy_profile = get_ve_path_and_ipython_profile(choice_file)
37
37
  if ipy_profile is None:
38
38
  ipy_profile = "default"
39
+ if ve_root_from_file is None:
40
+ raise ValueError(f"Could not determine virtual environment for file {choice_file}. Please ensure it is within a recognized project structure.")
39
41
 
40
- _activate_ve_line = get_ve_activate_line(ve_root=ve_root_from_file or "$HOME/code/machineconfig/.venv")
42
+ _activate_ve_line = get_ve_activate_line(ve_root=ve_root_from_file)
41
43
 
42
44
  # ========================= choosing function to run
43
45
  if function is None or function.strip() == "":
@@ -17,10 +17,8 @@ $sharePath=''
17
17
  $driveLetter=''
18
18
  $options = "rw,sec=sys,no_subtree_check"
19
19
 
20
- # . activate_ve
21
- . $HOME/code/machineconfig/.venv/Scripts/activate.ps1
22
20
 
23
- python -m machineconfig.scripts.python.mount_nfs
21
+ uv run python -m machineconfig.scripts.python.mount_nfs
24
22
  . $HOME/tmp_results/shells/python_return_command.ps1
25
23
 
26
24
  # Configure NFS server
@@ -7,7 +7,7 @@ $user = ''
7
7
  $sharePath = ''
8
8
  $driveLetter = ''
9
9
 
10
- uv run --python 3.13 --no-dev --project $HOME/code/machineconfig python -m machineconfig.scripts.python.mount_ssh
10
+ uv run --python 3.13 --with machineconfig python -m machineconfig.scripts.python.mount_ssh
11
11
 
12
12
  net use T: \\sshfs.kr\$user@$host.local
13
13
  # this worked: net use T: \\sshfs\alex@alex-p51s-5.local
@@ -14,8 +14,8 @@ set number true # show line numbers
14
14
 
15
15
  set preview true # preview file on the right pane
16
16
  # set previewer chafa --format sixel --work 9 --optimize 9 --stretch --zoom --size 140x80
17
- set previewer ~/code/machineconfig/src/machineconfig/settings/lf/linux/exe/previewer.sh
18
- set cleaner ~/code/machineconfig/src/machineconfig/settings/lf/linux/exe/cleaner.sh
17
+ set previewer $HOME/.config/machineconfig/settings/lf/linux/exe/previewer.sh
18
+ set cleaner $HOME/.config/machineconfig/settings/lf/linux/exe/cleaner.sh
19
19
  # set previewer pistol
20
20
 
21
21
  # set sixels true
@@ -48,7 +48,7 @@ set ratios '1:2:3' # ratio of pane widths
48
48
 
49
49
 
50
50
  # test image viewer
51
- map Q !~/code/machineconfig/src/machineconfig/settings/lf/linux/exe/previewer.sh "$f"
51
+ map Q !$HOME/.config/machineconfig/settings/lf/linux/exe/previewer.sh "$f"
52
52
 
53
53
  # key bindings
54
54
  map vmap v # default is invert
@@ -70,7 +70,6 @@ map <c-u> # half-up
70
70
  # e edit
71
71
  map e # edit modal key.
72
72
  map eh $hx $f
73
- map eH !source ~/code/machineconfig/.venv/bin/activate;hx $f
74
73
  map en $nano $f
75
74
  map el $lvim $f
76
75
  map ev $nvim $f
@@ -86,7 +85,7 @@ map ww bash
86
85
  # map wp $powershell
87
86
  map wr $~/scripts/croshell
88
87
  # map wm $cmd
89
- map i !~/code/machineconfig/src/machineconfig/settings/lf/linux/exe/previewer.sh $f
88
+ map i !~/.config/machineconfig/settings/lf/linux/exe/previewer.sh $f
90
89
  map I !cat $f | gum pager
91
90
  map R $~/scripts/croshell -r $f
92
91
  map O $~/scripts/croshell -rj $f
@@ -24,8 +24,6 @@ set ifs "\n"
24
24
  # see this: https://github.com/ahrm/dotfiles/tree/main/lf-windows/lf_scripts
25
25
  # https://github.com/NikitaIvanovV/ctpv
26
26
 
27
- # set previewer ~/code/machineconfig/src/machineconfig/settings/lf/leftpane_previewer.ps1
28
- # set previewer ~\AppData\Local\Microsoft\WindowsApps\bat.exe --color=always --theme=base16
29
27
  # also see pistol file previewer.
30
28
  # set shell pwsh # too slow.
31
29
  # set ignorecase true
@@ -75,7 +73,7 @@ map ww $powershell
75
73
  map wp $pwsh
76
74
  map wc $~/scripts/croshell.ps1
77
75
  map wm $cmd
78
- map i $~/code/machineconfig/src/machineconfig/settings/lf/windows/previewer.ps1 $env:f
76
+ map i $~/.config/machineconfig/settings/lf/windows/previewer.ps1 $env:f
79
77
  map R $powershell $env:USERPROFILE/scripts/croshell.ps1 -r $env:f
80
78
 
81
79
  # o file/folder Operations
@@ -103,27 +101,15 @@ map jc cd ~/code
103
101
  map jd cd ~/data
104
102
  map jD cd ~/Downloads
105
103
  map jx cd ~/dotfiles
106
- map jm cd ~/code/machineconfig/src/machineconfig
107
104
  map jh cd ~
108
105
  map ja cd $env:LOCALAPPDATA
109
106
  map jA cd $env:APPDATA
110
- map jj $pwsh -File $env:USERPROFILE/.local/bin/lvim.ps1 -- $env:USERPROFILE/code/machineconfig/src/machineconfig/settings/lf/windows/lfrc
107
+ map jj $pwsh -File $env:USERPROFILE/.local/bin/lvim.ps1 -- $HOME/.config/machineconfig/settings/lf/windows/lfrc
111
108
 
112
109
 
113
110
 
114
111
  # m make
115
112
  map m
116
- map md $~/code/machineconfig/src/machineconfig/settings/lf/windows/mkdir.ps1
117
- map mf $~/code/machineconfig/src/machineconfig/settings/lf/windows/mkfile.ps1
118
-
119
- # =================== JUNK ======================
120
- # Find and Jump
121
- #cmd fzfg $~/scripts/fzfg.ps1 $args[0]
122
- map J push :$~/scripts/fzfg<space>
123
- map F $~/code/machineconfig/src/machineconfig/settings/lf/windows/fzf_edit.ps1
124
- map S cd $~/code/machineconfig/src/machineconfig/settings/lf/windows/tst.ps1
125
- map T $~/code/machineconfig/src/machineconfig/settings/lf/windows/cd_tere.ps1
126
- map Z $~/code/machineconfig/src/machineconfig/settings/lf/windows/cd_zoxide2.ps1
127
-
128
- cmd doc $lf -doc | bat
113
+ map md $~/.config/machineconfig/settings/lf/windows/mkdir.ps1
114
+ map mf $~/.config/machineconfig/settings/lf/windows/mkfile.ps1
129
115
 
@@ -31,9 +31,3 @@ require('dap').configurations.python = { {
31
31
 
32
32
 
33
33
  local dap = require('dap')
34
- dap.adapters.python = {
35
- type = 'executable';
36
- command = "C:/Users/alex/code/machineconfig/.venv/Scripts/python.exe";
37
- args = {"-i" };
38
- }
39
-
@@ -5,4 +5,4 @@ inode/directory lsd -la %pistol-filename%
5
5
 
6
6
  fpath /var/src/my-bash-project/bin/[^/]+$ bat --map-syntax :bash --paging=never --color=always %pistol-filename%
7
7
 
8
- image/.* /home/alex/code/machineconfig/src/machineconfig/settings/lf/linux/exe/previewer.sh %pistol-filename% %pistol-extra0% %pistol-extra1% %pistol-extra2% %pistol-extra3%
8
+ image/.* /home/alex/.config/machineconfig/settings/lf/linux/exe/previewer.sh %pistol-filename% %pistol-extra0% %pistol-extra1% %pistol-extra2% %pistol-extra3%
@@ -1,9 +1,6 @@
1
1
  #!/bin/bash
2
2
  # 🛠️ Bash Shell Configuration and Initialization
3
3
 
4
-
5
- # export PATH="~/.local/bin:~/code/machineconfig/src/machineconfig/scripts/linux:~/dotfiles/scripts/linux:~/.nix-profile/bin:/usr/games:$PATH"
6
-
7
4
  add_to_path_if_not_already() {
8
5
  for dir in "$@"; do
9
6
  if [[ ! $PATH =~ (^|:)"${dir}"(:|$) ]]; then
@@ -11,12 +8,13 @@ add_to_path_if_not_already() {
11
8
  fi
12
9
  done
13
10
  }
11
+ CONFIG_ROOT="$HOME/.config/machineconfig"
14
12
 
15
13
  # 📂 Add directories to PATH
16
14
  add_to_path_if_not_already \
17
15
  "$HOME/.local/bin" \
18
16
  "$HOME/.cargo/bin" \
19
- "$HOME/code/machineconfig/src/machineconfig/scripts/linux" \
17
+ "$CONFIG_ROOT/scripts/linux" \
20
18
  "$HOME/dotfiles/scripts/linux" \
21
19
  "$HOME/.nix-profile/bin" \
22
20
  "/home/linuxbrew/.linuxbrew/bin" \
@@ -26,14 +24,12 @@ add_to_path_if_not_already \
26
24
 
27
25
 
28
26
  # echo "Sourcing scripts ..."
29
- machineconfig_path=$HOME/code/machineconfig/src/machineconfig
30
- . $machineconfig_path/settings/broot/br.sh
31
- . $machineconfig_path/settings/lf/linux/exe/lfcd.sh
32
- . $machineconfig_path/settings/tere/terecd.sh
27
+ . $CONFIG_ROOT/settings/broot/br.sh
28
+ . $CONFIG_ROOT/settings/lf/linux/exe/lfcd.sh
29
+ . $CONFIG_ROOT/settings/tere/terecd.sh
33
30
 
34
- # Check if $HOME/code/machineconfig directory exists and source commands.sh
35
- if [ -d "$HOME/code/machineconfig" ]; then
36
- source $HOME/code/machineconfig/src/machineconfig/settings/shells/bash/commands.sh
31
+ if [ -d $CONFIG_ROOT ]; then
32
+ source $CONFIG_ROOT/settings/shells/bash/commands.sh
37
33
  fi
38
34
 
39
35
  # set alias l to lsd -la
@@ -1,5 +1,7 @@
1
1
 
2
2
 
3
+ $MAC_ROOT = "$HOME\code\machineconfig"
4
+
3
5
  function Add-ToPathIfNotAlready {
4
6
  param (
5
7
  [Parameter(Mandatory=$true)]
@@ -14,7 +16,7 @@ function Add-ToPathIfNotAlready {
14
16
  }
15
17
 
16
18
  Add-ToPathIfNotAlready -Directories @(
17
- "$HOME\code\machineconfig\src\machineconfig\scripts\windows",
19
+ "$MAC_ROOT\src\machineconfig\scripts\windows",
18
20
  "$HOME\dotfiles\scripts\windows",
19
21
  "C:\Program Files (x86)\GnuWin32\bin",
20
22
  "C:\Program Files\CodeBlocks\MinGW\bin",
@@ -27,12 +29,12 @@ Add-ToPathIfNotAlready -Directories @(
27
29
 
28
30
 
29
31
  # sources ================================================================
30
- . $HOME/code/machineconfig/src/machineconfig/settings/broot/brootcd.ps1
31
- . $HOME/code/machineconfig/src/machineconfig/settings/lf/windows/lfcd.ps1
32
- . $HOME/code/machineconfig/src/machineconfig/settings/tere/terecd.ps1
32
+ . $MAC_ROOT\src\machineconfig\settings\broot\brootcd.ps1
33
+ . $MAC_ROOT\src\machineconfig\settings\lf\windows\lfcd.ps1
34
+ . $MAC_ROOT\src\machineconfig\settings\tere\terecd.ps1
33
35
 
34
- if (Test-Path "$HOME/code/machineconfig" -PathType Container) {
35
- . "$HOME/code/machineconfig/src/machineconfig/settings/shells/pwsh/commands.ps1"
36
+ if (Test-Path "$MAC_ROOT" -PathType Container) {
37
+ . "$MAC_ROOT\src\machineconfig\settings\shells\pwsh\commands.ps1"
36
38
  }
37
39
 
38
40
  function lsdla { lsd -la }
@@ -35,10 +35,6 @@ name = 'shell'
35
35
  default_position = 'top'
36
36
  default_height = 30
37
37
 
38
- [[layers]]
39
- name = "lang#python"
40
- python_interpreter = 'C:/Users/alex/code/machineconfig/.venv/Scripts/python.exe'
41
-
42
38
  [[layers]]
43
39
  name = "colorscheme"
44
40
 
@@ -35,9 +35,6 @@ name = 'shell'
35
35
  default_position = 'top'
36
36
  default_height = 30
37
37
 
38
- [[layers]]
39
- name = "lang#python"
40
- python_interpreter = '~/code/machineconfig/.venv/Scripts/python.exe'
41
38
 
42
39
  [[layers]]
43
40
  name = "colorscheme"
@@ -3,4 +3,26 @@
3
3
  devops() {
4
4
  "$HOME/.local/bin/uv" run --python 3.13 --with machineconfig devops "$@"
5
5
  }
6
+ agents() {
7
+ "$HOME/.local/bin/uv" run --python 3.13 --with machineconfig agents "$@"
8
+ }
9
+ cloud() {
10
+ "$HOME/.local/bin/uv" run --python 3.13 --with machineconfig cloud "$@"
11
+ }
12
+ croshell() {
13
+ "$HOME/.local/bin/uv" run --python 3.13 --with machineconfig croshell "$@"
14
+ }
15
+ fire() {
16
+ "$HOME/.local/bin/uv" run --python 3.13 --with machineconfig fire "$@"
17
+ }
18
+ ftpx() {
19
+ "$HOME/.local/bin/uv" run --python 3.13 --with machineconfig ftpx "$@"
20
+ }
21
+ kill_process() {
22
+ "$HOME/.local/bin/uv" run --python 3.13 --with machineconfig kill_process "$@"
23
+ }
24
+ sessions() {
25
+ "$HOME/.local/bin/uv" run --python 3.13 --with machineconfig sessions "$@"
26
+ }
27
+
6
28
  echo "devops command is now defined in this shell session."
@@ -4,4 +4,37 @@ iex (iwr "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/s
4
4
  function devops {
5
5
  & "$HOME\.local\bin\uv.exe" run --python 3.13 --with machineconfig devops $args
6
6
  }
7
- echo "devops command is now defined in this shell session."
7
+
8
+ function cloud {
9
+ & "$HOME\.local\bin\uv.exe" run --python 3.13 --with machineconfig cloud $args
10
+ }
11
+
12
+ function croshell {
13
+ & "$HOME\.local\bin\uv.exe" run --python 3.13 --with machineconfig croshell $args
14
+ }
15
+
16
+ function agents {
17
+ & "$HOME\.local\bin\uv.exe" run --python 3.13 --with machineconfig agents $args
18
+ }
19
+
20
+ function fire {
21
+ & "$HOME\.local\bin\uv.exe" run --python 3.13 --with machineconfig fire $args
22
+ }
23
+
24
+ function ftpx {
25
+ & "$HOME\.local\bin\uv.exe" run --python 3.13 --with machineconfig ftpx $args
26
+ }
27
+
28
+ function sessions {
29
+ & "$HOME\.local\bin\uv.exe" run --python 3.13 --with machineconfig sessions $args
30
+ }
31
+
32
+ function kill_process {
33
+ & "$HOME\.local\bin\uv.exe" run --python 3.13 --with machineconfig kill_process $args
34
+ }
35
+
36
+
37
+ # DONT use this line in combination with activated virtual enviroment.
38
+ # $env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
39
+ # uv run --python 3.13 --no-dev --with machineconfig start_slidev $args
40
+ # uv run --python 3.13 --no-dev --with machineconfig pomodoro $args
@@ -6,14 +6,12 @@ import machineconfig
6
6
  from pathlib import Path
7
7
 
8
8
  EXCLUDE_DIRS = [".links", ".ai", ".venv", ".git", ".idea", ".vscode", "node_modules", "__pycache__", ".mypy_cache"]
9
-
10
9
  LIBRARY_ROOT = Path(machineconfig.__file__).resolve().parent
11
- REPO_ROOT = LIBRARY_ROOT.parent.parent
12
10
 
13
- CONFIG_PATH = Path.home().joinpath(".config/machineconfig")
11
+ CONFIG_ROOT = Path.home().joinpath(".config/machineconfig")
14
12
  DEFAULTS_PATH = Path.home().joinpath("dotfiles/machineconfig/defaults.ini")
15
13
 
16
- INSTALL_VERSION_ROOT = CONFIG_PATH.joinpath("cli_tools_installers/versions")
14
+ INSTALL_VERSION_ROOT = CONFIG_ROOT.joinpath("cli_tools_installers/versions")
17
15
  INSTALL_TMP_DIR = Path.home().joinpath("tmp_results", "tmp_installers")
18
16
 
19
17
  # LINUX_INSTALL_PATH = '/usr/local/bin'
@@ -219,7 +219,7 @@ class SSH: # inferior alternative: https://github.com/fabric/fabric
219
219
  assert '"' not in cmd, 'Avoid using `"` in your command. I dont know how to handle this when passing is as command to python in pwsh command.'
220
220
  if not return_obj:
221
221
  return self.run(
222
- cmd=f"""$HOME/.local/bin/uv run --no-dev --project $HOME/code/machineconfig python -c "{cmd}\n""" + '"',
222
+ cmd=f"""$HOME/.local/bin/devops self run-python -c "{cmd}\n""" + '"',
223
223
  desc=desc or f"run_py on {self.get_remote_repr()}",
224
224
  verbose=verbose,
225
225
  strict_err=strict_err,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: machineconfig
3
- Version: 5.38
3
+ Version: 5.40
4
4
  Summary: Dotfiles management package
5
5
  Author-email: Alex Al-Saffar <programmer@usa.com>
6
6
  License: Apache 2.0
@@ -26,6 +26,7 @@ Requires-Dist: rclone-python>=0.1.23
26
26
  Requires-Dist: pyjson5>=1.6.9
27
27
  Requires-Dist: questionary>=2.1.1
28
28
  Requires-Dist: typer-slim>=0.19.2
29
+ Requires-Dist: euporie>=2.8.14
29
30
  Provides-Extra: windows
30
31
  Requires-Dist: pywin32; extra == "windows"
31
32
  Provides-Extra: plot