machineconfig 5.83__py3-none-any.whl → 5.85__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/profile/mapper.toml +3 -2
- machineconfig/scripts/python/croshell.py +1 -1
- machineconfig/scripts/python/devops_helpers/cli_config.py +10 -10
- machineconfig/scripts/python/devops_helpers/cli_repos.py +1 -1
- machineconfig/scripts/python/devops_helpers/cli_self.py +16 -5
- machineconfig/scripts/python/devops_helpers/devops_update_repos.py +1 -1
- machineconfig/scripts/python/helpers_fire/template.sh +2 -2
- machineconfig/scripts/python/helpers_repos/cloud_repo_sync.py +2 -2
- machineconfig/scripts/python/helpers_repos/secure_repo.py +2 -2
- machineconfig/scripts/python/interactive.py +2 -2
- machineconfig/scripts/python/nw/mount_nfs +1 -1
- machineconfig/scripts/python/repos_helpers/action.py +5 -5
- machineconfig/scripts/python/repos_helpers/count_lines_frontend.py +1 -1
- machineconfig/scripts/python/repos_helpers/entrypoint.py +2 -2
- machineconfig/scripts/python/repos_helpers/update.py +2 -2
- machineconfig/scripts/windows/mounts/mount_ssh.ps1 +1 -1
- machineconfig/settings/lf/linux/lfrc +23 -428
- machineconfig/settings/shells/bash/init.sh +19 -11
- machineconfig/settings/shells/pwsh/init.ps1 +9 -0
- machineconfig/setup_linux/web_shortcuts/interactive.sh +11 -23
- machineconfig/setup_windows/web_shortcuts/interactive.ps1 +11 -28
- machineconfig/utils/ssh.py +3 -3
- {machineconfig-5.83.dist-info → machineconfig-5.85.dist-info}/METADATA +1 -1
- {machineconfig-5.83.dist-info → machineconfig-5.85.dist-info}/RECORD +27 -28
- machineconfig/jobs/python/vscode/sync_code.py +0 -73
- {machineconfig-5.83.dist-info → machineconfig-5.85.dist-info}/WHEEL +0 -0
- {machineconfig-5.83.dist-info → machineconfig-5.85.dist-info}/entry_points.txt +0 -0
- {machineconfig-5.83.dist-info → machineconfig-5.85.dist-info}/top_level.txt +0 -0
|
@@ -4,428 +4,7 @@ set icons true # show icons next to files
|
|
|
4
4
|
set period 1 # interval to check for directory updates
|
|
5
5
|
set hidden true # show hidden files by default
|
|
6
6
|
set incsearch true # jump to first match after each keystroke in search
|
|
7
|
-
#
|
|
8
|
-
# Based on lf documentation: https://github.com/gokcehan/lf/blob/master/doc.md
|
|
9
|
-
|
|
10
|
-
# ============================ OPTIONS ============================================
|
|
11
|
-
|
|
12
|
-
# Navigation and display
|
|
13
|
-
set scrolloff 10 # space on top and bottom of screen
|
|
14
|
-
set relativenumber false # show relative line numbers (complements number)
|
|
15
|
-
set number true # show absolute line numbers
|
|
16
|
-
set wrapscroll false # scrolling wraps around the file list
|
|
17
|
-
set wrapscan true # searching wraps around the file list
|
|
18
|
-
|
|
19
|
-
# File display
|
|
20
|
-
set hidden true # show hidden files by default
|
|
21
|
-
set hiddenfiles ".*:*.aux:*.log:*.bbl:*.bcf:*.blg:*.run.xml" # additional hidden patterns
|
|
22
|
-
set dirfirst true # show directories first
|
|
23
|
-
set dironly false # show only directories
|
|
24
|
-
set info "size:time" # show file size and modification time
|
|
25
|
-
set dircounts false # don't show item counts in directories (performance)
|
|
26
|
-
set sizeunits binary # use binary units (1024) instead of decimal (1000)
|
|
27
|
-
|
|
28
|
-
# Icons and colors
|
|
29
|
-
set icons true # show icons next to files
|
|
30
|
-
set drawbox false # don't draw borders around panes
|
|
31
|
-
set roundbox false # rounded corners for borders (when drawbox enabled)
|
|
32
|
-
|
|
33
|
-
# Search and filtering
|
|
34
|
-
set ignorecase true # ignore case in sorting and search
|
|
35
|
-
set smartcase true # override ignorecase when pattern has uppercase
|
|
36
|
-
set ignoredia true # ignore diacritics in sorting and search
|
|
37
|
-
set smartdia false # override ignoredia when pattern has diacritics
|
|
38
|
-
set incsearch true # jump to first match after each keystroke in search
|
|
39
|
-
set incfilter false # don't apply filter after each keystroke
|
|
40
|
-
set filtermethod text # filter method: text, glob, or regex
|
|
41
|
-
set searchmethod text # search method: text, glob, or regex
|
|
42
|
-
set anchorfind true # find command starts matching from beginning
|
|
43
|
-
set findlen 1 # number of characters for find command
|
|
44
|
-
|
|
45
|
-
# File operations
|
|
46
|
-
set preserve "mode" # preserve file attributes when copying
|
|
47
|
-
set dupfilefmt "%f.~%n~" # format for duplicate files
|
|
48
|
-
set selmode all # selection mode: all or dir
|
|
49
|
-
|
|
50
|
-
# Preview
|
|
51
|
-
set preview true # preview files on the right pane
|
|
52
|
-
set previewer ~/.config/machineconfig/settings/lf/linux/exe/previewer.sh
|
|
53
|
-
set cleaner ~/.config/machineconfig/settings/lf/linux/exe/cleaner.sh
|
|
54
|
-
set dirpreviews false # don't preview directories by default
|
|
55
|
-
|
|
56
|
-
# Performance and monitoring
|
|
57
|
-
set period 0 # disable periodic directory updates (0 = disabled)
|
|
58
|
-
set watch false # don't watch filesystem for changes (can be slow)
|
|
59
|
-
|
|
60
|
-
# Mouse and interaction
|
|
61
|
-
set mouse false # disable mouse support
|
|
62
|
-
set showbinds true # show key bindings
|
|
63
|
-
|
|
64
|
-
# UI layout
|
|
65
|
-
set ratios "1:2:3" # ratio of pane widths
|
|
66
|
-
|
|
67
|
-
# Truncation
|
|
68
|
-
set truncatechar "~" # character to show when filename is truncated
|
|
69
|
-
set truncatepct 100 # percentage of space for filename before extension
|
|
70
|
-
|
|
71
|
-
# History and persistence
|
|
72
|
-
set history true # save command history
|
|
73
|
-
|
|
74
|
-
# Special files and behavior
|
|
75
|
-
set ifs "\n" # internal field separator for shell commands
|
|
76
|
-
set shell sh # shell to use
|
|
77
|
-
set shellflag -c # shell flag
|
|
78
|
-
set shellopts "" # shell options
|
|
79
|
-
set waitmsg "Press any key to continue"
|
|
80
|
-
|
|
81
|
-
# Formatting (colors and styles)
|
|
82
|
-
set promptfmt "\033[32;1m%u@%h\033[0m:\033[34;1m%d\033[0m\033[1m%f\033[0m"
|
|
83
|
-
set cursoractivefmt "\033[7m"
|
|
84
|
-
set cursorparentfmt "\033[7m"
|
|
85
|
-
set cursorpreviewfmt "\033[4m"
|
|
86
|
-
set numberfmt "\033[33m"
|
|
87
|
-
set copyfmt "\033[7;33m"
|
|
88
|
-
set cutfmt "\033[7;31m"
|
|
89
|
-
set selectfmt "\033[7;35m"
|
|
90
|
-
set visualfmt "\033[7;36m"
|
|
91
|
-
set errorfmt "\033[7;31;47m"
|
|
92
|
-
set borderfmt "\033[0m"
|
|
93
|
-
set menufmt "\033[0m"
|
|
94
|
-
set menuheaderfmt "\033[1m"
|
|
95
|
-
set menuselectfmt "\033[7m"
|
|
96
|
-
|
|
97
|
-
# Ruler and status
|
|
98
|
-
set rulerfmt " %a| %p| \033[7;31m %m \033[0m| \033[7;33m %c \033[0m| \033[7;35m %s \033[0m| \033[7;36m %v \033[0m| \033[7;34m %f \033[0m| %i/%t"
|
|
99
|
-
set statfmt "\033[36m%p\033[0m| %c| %u| %g| %S| %t| -> %l"
|
|
100
|
-
|
|
101
|
-
# Sorting
|
|
102
|
-
set sortby natural # sort by: natural, name, ext, size, time, atime, btime, ctime
|
|
103
|
-
set reverse false # don't reverse sort order
|
|
104
|
-
|
|
105
|
-
# Tabstops and display
|
|
106
|
-
set tabstop 8 # number of spaces for tab character
|
|
107
|
-
|
|
108
|
-
# User options (can be accessed in scripts)
|
|
109
|
-
# set user_option value
|
|
110
|
-
|
|
111
|
-
# ============================ KEY BINDINGS ============================================
|
|
112
|
-
|
|
113
|
-
# Clear default mappings that might conflict
|
|
114
|
-
clearmaps
|
|
115
|
-
|
|
116
|
-
# Navigation (vim-like)
|
|
117
|
-
map <up> up
|
|
118
|
-
map <down> down
|
|
119
|
-
map <left> updir
|
|
120
|
-
map <right> open
|
|
121
|
-
map k up
|
|
122
|
-
map j down
|
|
123
|
-
map h updir
|
|
124
|
-
map l open
|
|
125
|
-
map gg top
|
|
126
|
-
map G bottom
|
|
127
|
-
map H high
|
|
128
|
-
map M middle
|
|
129
|
-
map L low
|
|
130
|
-
|
|
131
|
-
# Scrolling
|
|
132
|
-
map <c-u> half-up
|
|
133
|
-
map <c-d> half-down
|
|
134
|
-
map <c-b> page-up
|
|
135
|
-
map <c-f> page-down
|
|
136
|
-
map <c-y> scroll-up
|
|
137
|
-
map <c-e> scroll-down
|
|
138
|
-
|
|
139
|
-
# Jumping
|
|
140
|
-
map ] jump-next
|
|
141
|
-
map [ jump-prev
|
|
142
|
-
|
|
143
|
-
# File operations
|
|
144
|
-
map y copy
|
|
145
|
-
map d cut
|
|
146
|
-
map p paste
|
|
147
|
-
map c clear
|
|
148
|
-
map x delete
|
|
149
|
-
map r rename
|
|
150
|
-
|
|
151
|
-
# Selection and marking
|
|
152
|
-
map v invert
|
|
153
|
-
map u unselect
|
|
154
|
-
map t tag-toggle
|
|
155
|
-
map <space> :toggle; down
|
|
156
|
-
|
|
157
|
-
# Search and find
|
|
158
|
-
map / search
|
|
159
|
-
map ? search-back
|
|
160
|
-
map n search-next
|
|
161
|
-
map N search-prev
|
|
162
|
-
map f find
|
|
163
|
-
map F find-back
|
|
164
|
-
map ; find-next
|
|
165
|
-
map , find-prev
|
|
166
|
-
|
|
167
|
-
# Filter
|
|
168
|
-
map f filter
|
|
169
|
-
|
|
170
|
-
# Marks
|
|
171
|
-
map m mark-save
|
|
172
|
-
map ' mark-load
|
|
173
|
-
map " mark-remove
|
|
174
|
-
|
|
175
|
-
# Commands
|
|
176
|
-
map : read
|
|
177
|
-
map $ shell
|
|
178
|
-
map % shell-pipe
|
|
179
|
-
map ! shell-wait
|
|
180
|
-
map & shell-async
|
|
181
|
-
|
|
182
|
-
# Special
|
|
183
|
-
map . set hidden!
|
|
184
|
-
map zh set hidden!
|
|
185
|
-
map zr set reverse!
|
|
186
|
-
map zn set info
|
|
187
|
-
map zs set info size
|
|
188
|
-
map zt set info time
|
|
189
|
-
map za set info size:time
|
|
190
|
-
|
|
191
|
-
# Sorting shortcuts
|
|
192
|
-
map sn :set sortby natural; set info
|
|
193
|
-
map ss :set sortby size; set info size
|
|
194
|
-
map st :set sortby time; set info time
|
|
195
|
-
map sa :set sortby atime; set info atime
|
|
196
|
-
map sb :set sortby btime; set info btime
|
|
197
|
-
map sc :set sortby ctime; set info ctime
|
|
198
|
-
map se :set sortby ext; set info
|
|
199
|
-
|
|
200
|
-
# UI
|
|
201
|
-
map <c-l> redraw
|
|
202
|
-
map <c-r> reload
|
|
203
|
-
|
|
204
|
-
# Quit
|
|
205
|
-
map q quit
|
|
206
|
-
map ZZ quit
|
|
207
|
-
map ZQ quit!
|
|
208
|
-
|
|
209
|
-
# Help
|
|
210
|
-
map <f-1> help
|
|
211
|
-
|
|
212
|
-
# ============================ CUSTOM COMMANDS =====================================
|
|
213
|
-
|
|
214
|
-
# Open files with appropriate applications
|
|
215
|
-
cmd open &{{
|
|
216
|
-
case $(file --mime-type -Lb "$f") in
|
|
217
|
-
text/*) $EDITOR "$f" ;;
|
|
218
|
-
image/*) imv "$f" ;;
|
|
219
|
-
video/*) mpv "$f" ;;
|
|
220
|
-
audio/*) mpv "$f" ;;
|
|
221
|
-
application/pdf) zathura "$f" ;;
|
|
222
|
-
*) xdg-open "$f" ;;
|
|
223
|
-
esac
|
|
224
|
-
}}
|
|
225
|
-
|
|
226
|
-
# Enhanced paste with progress
|
|
227
|
-
cmd paste &{{
|
|
228
|
-
# Use lf's built-in paste but with custom handling if needed
|
|
229
|
-
# This is a fallback - lf handles paste internally by default
|
|
230
|
-
lf -remote "send $id paste"
|
|
231
|
-
}}
|
|
232
|
-
|
|
233
|
-
# Enhanced delete with trash
|
|
234
|
-
cmd delete &{{
|
|
235
|
-
printf "Delete %d files? [y/N] " $(echo "$fx" | wc -l)
|
|
236
|
-
read -r ans
|
|
237
|
-
[ "$ans" = "y" ] || [ "$ans" = "Y" ] || exit 1
|
|
238
|
-
|
|
239
|
-
# Move to trash instead of permanent deletion
|
|
240
|
-
mkdir -p ~/.trash
|
|
241
|
-
mv "$fx" ~/.trash/
|
|
242
|
-
}}
|
|
243
|
-
|
|
244
|
-
# Bulk rename with vidir
|
|
245
|
-
cmd rename %vidir
|
|
246
|
-
|
|
247
|
-
# Create directories
|
|
248
|
-
cmd mkdir &{{
|
|
249
|
-
printf "Directory name: "
|
|
250
|
-
read -r dirname
|
|
251
|
-
mkdir -p "$dirname"
|
|
252
|
-
}}
|
|
253
|
-
|
|
254
|
-
# Create files
|
|
255
|
-
cmd mkfile &{{
|
|
256
|
-
printf "File name: "
|
|
257
|
-
read -r filename
|
|
258
|
-
$EDITOR "$filename"
|
|
259
|
-
}}
|
|
260
|
-
|
|
261
|
-
# Change permissions
|
|
262
|
-
cmd chmod %{{
|
|
263
|
-
printf "Mode bits: "
|
|
264
|
-
read -r mode
|
|
265
|
-
chmod "$mode" "$fx"
|
|
266
|
-
lf -remote "send $id reload"
|
|
267
|
-
}}
|
|
268
|
-
|
|
269
|
-
# Directory size calculation
|
|
270
|
-
cmd calcdirsize &{{
|
|
271
|
-
for dir in "$fx"; do
|
|
272
|
-
if [ -d "$dir" ]; then
|
|
273
|
-
size=$(du -sh "$dir" | cut -f1)
|
|
274
|
-
lf -remote "send $id addcustominfo \"$dir\" \"$size\""
|
|
275
|
-
fi
|
|
276
|
-
done
|
|
277
|
-
}}
|
|
278
|
-
|
|
279
|
-
# Git status indicators
|
|
280
|
-
cmd git-status &{{
|
|
281
|
-
if git rev-parse --git-dir >/dev/null 2>&1; then
|
|
282
|
-
for file in "$@"; do
|
|
283
|
-
if [ -e "$file" ]; then
|
|
284
|
-
status=$(git status --porcelain "$file" 2>/dev/null | head -n1 | cut -c1-2)
|
|
285
|
-
[ -n "$status" ] && lf -remote "send $id addcustominfo \"$file\" \"$status\""
|
|
286
|
-
fi
|
|
287
|
-
done
|
|
288
|
-
fi
|
|
289
|
-
}}
|
|
290
|
-
|
|
291
|
-
# Fuzzy jump with fzf
|
|
292
|
-
cmd fzf-jump &{{
|
|
293
|
-
dest=$(find . -type d | fzf --height 40% --reverse --header="Jump to directory")
|
|
294
|
-
[ -n "$dest" ] && lf -remote "send $id cd \"$dest\""
|
|
295
|
-
}}
|
|
296
|
-
|
|
297
|
-
# Fuzzy search with ripgrep and fzf
|
|
298
|
-
cmd fzf-search &{{
|
|
299
|
-
RG_PREFIX="rg --column --line-number --no-heading --color=always --smart-case"
|
|
300
|
-
result=$(
|
|
301
|
-
FZF_DEFAULT_COMMAND="$RG_PREFIX ''" \
|
|
302
|
-
fzf --bind "change:reload:$RG_PREFIX {q} || true" \
|
|
303
|
-
--ansi --layout=reverse --header 'Search in files' \
|
|
304
|
-
--disabled
|
|
305
|
-
)
|
|
306
|
-
[ -n "$result" ] && file=$(echo "$result" | cut -d: -f1) && lf -remote "send $id select \"$file\""
|
|
307
|
-
}}
|
|
308
|
-
|
|
309
|
-
# Zoxide integration
|
|
310
|
-
cmd zi &{{
|
|
311
|
-
result="$(zoxide query -i)"
|
|
312
|
-
[ -n "$result" ] && lf -remote "send $id cd \"$result\""
|
|
313
|
-
}}
|
|
314
|
-
|
|
315
|
-
# Tere integration (if available)
|
|
316
|
-
cmd tere &{{
|
|
317
|
-
result="$(tere)"
|
|
318
|
-
[ -n "$result" ] && lf -remote "send $id cd \"$result\""
|
|
319
|
-
}}
|
|
320
|
-
|
|
321
|
-
# Bulk operations
|
|
322
|
-
cmd bulk-rename %{{
|
|
323
|
-
vidir "$@"
|
|
324
|
-
}}
|
|
325
|
-
|
|
326
|
-
cmd bulk-chmod %{{
|
|
327
|
-
printf "New permissions: "
|
|
328
|
-
read -r perms
|
|
329
|
-
chmod -R "$perms" "$@"
|
|
330
|
-
lf -remote "send $id reload"
|
|
331
|
-
}}
|
|
332
|
-
|
|
333
|
-
# Archive operations
|
|
334
|
-
cmd extract &{{
|
|
335
|
-
for file in "$@"; do
|
|
336
|
-
case "$file" in
|
|
337
|
-
*.tar.bz2|*.tbz2) tar xjf "$file" ;;
|
|
338
|
-
*.tar.gz|*.tgz) tar xzf "$file" ;;
|
|
339
|
-
*.tar.xz|*.txz) tar xJf "$file" ;;
|
|
340
|
-
*.tar.zst) tar --zstd -xf "$file" ;;
|
|
341
|
-
*.tar) tar xf "$file" ;;
|
|
342
|
-
*.bz2) bunzip2 "$file" ;;
|
|
343
|
-
*.gz) gunzip "$file" ;;
|
|
344
|
-
*.xz) unxz "$file" ;;
|
|
345
|
-
*.zip) unzip "$file" ;;
|
|
346
|
-
*.7z) 7z x "$file" ;;
|
|
347
|
-
*.rar) unrar x "$file" ;;
|
|
348
|
-
*) echo "Unsupported archive: $file" ;;
|
|
349
|
-
esac
|
|
350
|
-
done
|
|
351
|
-
lf -remote "send $id reload"
|
|
352
|
-
}}
|
|
353
|
-
|
|
354
|
-
cmd compress &{{
|
|
355
|
-
printf "Archive name (without extension): "
|
|
356
|
-
read -r name
|
|
357
|
-
printf "Format (tar.gz/zip/7z): "
|
|
358
|
-
read -r format
|
|
359
|
-
|
|
360
|
-
case "$format" in
|
|
361
|
-
tar.gz) tar czf "$name.tar.gz" "$@" ;;
|
|
362
|
-
zip) zip -r "$name.zip" "$@" ;;
|
|
363
|
-
7z) 7z a "$name.7z" "$@" ;;
|
|
364
|
-
*) echo "Unsupported format" ;;
|
|
365
|
-
esac
|
|
366
|
-
lf -remote "send $id reload"
|
|
367
|
-
}}
|
|
368
|
-
|
|
369
|
-
# ============================ SPECIAL COMMANDS ===================================
|
|
370
|
-
|
|
371
|
-
# Directory change hooks
|
|
372
|
-
cmd on-cd &{{
|
|
373
|
-
# Update terminal title
|
|
374
|
-
lf -remote "send $id tty-write \"\033]0;lf: $PWD\007\""
|
|
375
|
-
}}
|
|
376
|
-
|
|
377
|
-
cmd on-load &git-status
|
|
378
|
-
|
|
379
|
-
# ============================ LEGACY/COMPATIBILITY ==============================
|
|
380
|
-
|
|
381
|
-
# Old mappings (kept for compatibility but prefer new ones above)
|
|
382
|
-
# map Q !~/.config/machineconfig/settings/lf/linux/exe/previewer.sh "$f"
|
|
383
|
-
# map I !cat $f | gum pager
|
|
384
|
-
# map R $~/scripts/croshell -r $f
|
|
385
|
-
# map O $~/scripts/croshell -rj $f
|
|
386
|
-
|
|
387
|
-
# Old jump mappings
|
|
388
|
-
# map jc cd ~/code
|
|
389
|
-
# map jd cd ~/data
|
|
390
|
-
# map jD cd ~/Downloads
|
|
391
|
-
# map jx cd ~/dotfiles
|
|
392
|
-
# map jh cd ~
|
|
393
|
-
# map jj $~/scripts/croshell -j --read $f
|
|
394
|
-
|
|
395
|
-
# Old operation mappings
|
|
396
|
-
# map od cut
|
|
397
|
-
# map op paste
|
|
398
|
-
# map oy copy
|
|
399
|
-
# map oc $echo $f | xclip
|
|
400
|
-
# map or rename
|
|
401
|
-
# map of reload
|
|
402
|
-
# map os mark-save
|
|
403
|
-
# map ol mark-load
|
|
404
|
-
# map oR mark-remove
|
|
405
|
-
# map oD $ouch d $f
|
|
406
|
-
# map oC $ouch c $f "$f.zip"
|
|
407
|
-
# map oL $ln -s $f ~/tmp_results/tmp_links/$(basename "$f")
|
|
408
|
-
|
|
409
|
-
# Old make mappings
|
|
410
|
-
# map md mkdir
|
|
411
|
-
# map mf mkfile
|
|
412
|
-
# map mF sudomkfile
|
|
413
|
-
# map mp chmod
|
|
414
|
-
|
|
415
|
-
# Old junk mappings
|
|
416
|
-
# map <c-f> :fzf_jump
|
|
417
|
-
# map gs :fzf_search
|
|
418
|
-
# map J broot_jump
|
|
419
|
-
# map F fzf_jump
|
|
420
|
-
|
|
421
|
-
# Old command definitions (replaced with modern equivalents above)
|
|
422
|
-
# cmd fzf_jump ${{ ... }}
|
|
423
|
-
# cmd fzf_search ${{ ... }}
|
|
424
|
-
# cmd broot_jump ${{ ... }}
|
|
425
|
-
# cmd mkdir ${{ ... }}
|
|
426
|
-
# cmd mkfile ${{ ... }}
|
|
427
|
-
# cmd sudomkfile ${{ ... }}
|
|
428
|
-
# cmd chmod ${{ ... }}
|
|
7
|
+
set dircounts true # show number of items in directory instead of sie
|
|
429
8
|
set info "size" # list directory information on the right
|
|
430
9
|
set sortby "natural" # don't sort files in any special way
|
|
431
10
|
# set drawbox true # draw a border around all panes
|
|
@@ -435,8 +14,8 @@ set number true # show line numbers
|
|
|
435
14
|
|
|
436
15
|
set preview true # preview file on the right pane
|
|
437
16
|
# set previewer chafa --format sixel --work 9 --optimize 9 --stretch --zoom --size 140x80
|
|
438
|
-
set previewer
|
|
439
|
-
set cleaner
|
|
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
|
|
440
19
|
# set previewer pistol
|
|
441
20
|
|
|
442
21
|
# set sixels true
|
|
@@ -469,10 +48,16 @@ set ratios '1:2:3' # ratio of pane widths
|
|
|
469
48
|
|
|
470
49
|
|
|
471
50
|
# test image viewer
|
|
472
|
-
map Q
|
|
51
|
+
map Q !~/code/machineconfig/src/machineconfig/settings/lf/linux/exe/previewer.sh "$f"
|
|
473
52
|
|
|
474
53
|
# key bindings
|
|
54
|
+
map vmap v # default is invert
|
|
475
55
|
map V invert
|
|
56
|
+
map p
|
|
57
|
+
map x
|
|
58
|
+
map c
|
|
59
|
+
map v
|
|
60
|
+
# map D
|
|
476
61
|
map D $diskonaut
|
|
477
62
|
map K $kondo $f
|
|
478
63
|
|
|
@@ -485,6 +70,7 @@ map <c-u> # half-up
|
|
|
485
70
|
# e edit
|
|
486
71
|
map e # edit modal key.
|
|
487
72
|
map eh $hx $f
|
|
73
|
+
map eH !source ~/code/machineconfig/.venv/bin/activate;hx $f
|
|
488
74
|
map en $nano $f
|
|
489
75
|
map el $lvim $f
|
|
490
76
|
map ev $nvim $f
|
|
@@ -495,11 +81,12 @@ map <enter> open
|
|
|
495
81
|
|
|
496
82
|
|
|
497
83
|
# w shells
|
|
84
|
+
map w
|
|
498
85
|
map ww bash
|
|
499
86
|
# map wp $powershell
|
|
500
87
|
map wr $~/scripts/croshell
|
|
501
88
|
# map wm $cmd
|
|
502
|
-
map i
|
|
89
|
+
map i !~/code/machineconfig/src/machineconfig/settings/lf/linux/exe/previewer.sh $f
|
|
503
90
|
map I !cat $f | gum pager
|
|
504
91
|
map R $~/scripts/croshell -r $f
|
|
505
92
|
map O $~/scripts/croshell -rj $f
|
|
@@ -509,6 +96,7 @@ map O $~/scripts/croshell -rj $f
|
|
|
509
96
|
map c clear
|
|
510
97
|
map <delete> delete
|
|
511
98
|
|
|
99
|
+
map o
|
|
512
100
|
map od cut
|
|
513
101
|
map op paste
|
|
514
102
|
map oy copy
|
|
@@ -520,15 +108,18 @@ map ol mark-load
|
|
|
520
108
|
map oR mark-remove
|
|
521
109
|
map oD $ouch d $f
|
|
522
110
|
map oC $ouch c $f "$f.zip"
|
|
523
|
-
map oL $ln -s $f
|
|
111
|
+
map oL $ln -s $f $HOME/tmp_results/tmp_links/$(basename "$f")
|
|
524
112
|
|
|
525
113
|
# j jump
|
|
114
|
+
map j
|
|
526
115
|
map jc cd ~/code
|
|
527
116
|
map jd cd ~/data
|
|
528
117
|
map jD cd ~/Downloads
|
|
529
118
|
map jx cd ~/dotfiles
|
|
119
|
+
# map jm cd ~/code/machineconfig/src/machineconfig
|
|
530
120
|
map jh cd ~
|
|
531
121
|
map jj $~/scripts/croshell -j --read $f
|
|
122
|
+
# map jj $lvim ~/code/machineconfig/src/machineconfig/settings/lf/linux/lfrc
|
|
532
123
|
|
|
533
124
|
# from https://github.com/gokcehan/lf/wiki/Integrations#zoxide
|
|
534
125
|
cmd zi ${{
|
|
@@ -544,6 +135,7 @@ cmd ter ${{
|
|
|
544
135
|
map T ter #!tere
|
|
545
136
|
|
|
546
137
|
# m make
|
|
138
|
+
map m
|
|
547
139
|
map md mkdir
|
|
548
140
|
map mf mkfile
|
|
549
141
|
map mF sudomkfile
|
|
@@ -571,6 +163,10 @@ cmd fzf_jump ${{
|
|
|
571
163
|
}}
|
|
572
164
|
|
|
573
165
|
|
|
166
|
+
cmd fzf2g $(~/scripts/fzf2g.sh $args[1])
|
|
167
|
+
# map F $nano fzf2g $args[1]
|
|
168
|
+
|
|
169
|
+
|
|
574
170
|
cmd fzf_search ${{
|
|
575
171
|
res="$( \
|
|
576
172
|
RG_PREFIX="rg --column --line-number --no-heading --color=always \
|
|
@@ -628,4 +224,3 @@ cmd chmod ${{
|
|
|
628
224
|
|
|
629
225
|
lf -remote 'send reload'
|
|
630
226
|
}}
|
|
631
|
-
|
|
@@ -30,23 +30,31 @@ add_to_path_if_not_already \
|
|
|
30
30
|
|
|
31
31
|
# set alias l to lsd -la
|
|
32
32
|
alias l='lsd -la'
|
|
33
|
-
|
|
34
|
-
alias
|
|
35
|
-
alias
|
|
33
|
+
|
|
34
|
+
alias d=devops
|
|
35
|
+
alias c=cloud
|
|
36
|
+
alias a=agents
|
|
37
|
+
alias s=sessions
|
|
38
|
+
alias ff=ftpx
|
|
39
|
+
alias f=fire
|
|
40
|
+
alias cs=croshell
|
|
41
|
+
|
|
42
|
+
# alias gcs='gh copilot suggest -t shell'
|
|
43
|
+
# alias gcg='gh copilot suggest -t git'
|
|
44
|
+
# alias gce='gh copilot explain'
|
|
36
45
|
# Check uniqueness of aliases
|
|
37
46
|
# type gcs
|
|
38
47
|
# type gcg
|
|
39
48
|
# type gce
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
49
|
+
# gcd() {
|
|
50
|
+
# x=$(history -p '!!')
|
|
51
|
+
# y=$(eval "$x" 2>&1)
|
|
52
|
+
# gh copilot explain "Input command is: $x The output is this: $y"
|
|
53
|
+
# }
|
|
46
54
|
|
|
47
55
|
# 📦 Node Version Manager
|
|
48
|
-
export NVM_DIR="$HOME/.nvm"
|
|
49
|
-
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
56
|
+
# export NVM_DIR="$HOME/.nvm"
|
|
57
|
+
# [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
50
58
|
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
51
59
|
|
|
52
60
|
|
|
@@ -37,6 +37,15 @@ Add-ToPathIfNotAlready -Directories @(
|
|
|
37
37
|
function lsdla { lsd -la }
|
|
38
38
|
Set-Alias -Name l -Value lsdla -Option AllScope
|
|
39
39
|
|
|
40
|
+
function d { mcfg devops @args }
|
|
41
|
+
function c { mcfg cloud @args }
|
|
42
|
+
function a { mcfg agents @args }
|
|
43
|
+
function s { mcfg sessions @args }
|
|
44
|
+
function ff { mcfg ftpx @args }
|
|
45
|
+
function f { mcfg fire @args }
|
|
46
|
+
function cs { mcfg croshell @args }
|
|
47
|
+
|
|
48
|
+
|
|
40
49
|
try {
|
|
41
50
|
Set-Alias -Name gcs -Value {gh copilot suggest -t shell}
|
|
42
51
|
Set-Alias -Name gcg -Value {gh copilot suggest -t git}
|
|
@@ -1,25 +1,13 @@
|
|
|
1
1
|
#!/bin/bash
|
|
2
2
|
. <( curl -sSL "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_linux/uv.sh")
|
|
3
|
-
|
|
4
|
-
"$HOME/.local/bin/uv" run --python 3.14 --with "machineconfig>=5.
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
croshell
|
|
13
|
-
|
|
14
|
-
}
|
|
15
|
-
fire() {
|
|
16
|
-
"$HOME/.local/bin/uv" run --python 3.14 --with "machineconfig>=5.74" fire "$@"
|
|
17
|
-
}
|
|
18
|
-
ftpx() {
|
|
19
|
-
"$HOME/.local/bin/uv" run --python 3.14 --with "machineconfig>=5.74" ftpx "$@"
|
|
20
|
-
}
|
|
21
|
-
sessions() {
|
|
22
|
-
"$HOME/.local/bin/uv" run --python 3.14 --with "machineconfig>=5.74" sessions "$@"
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
echo "devops command is now defined in this shell session."
|
|
3
|
+
mcfg() {
|
|
4
|
+
"$HOME/.local/bin/uv" run --python 3.14 --with "machineconfig>="mcfg 5.84" mcfg "$@"
|
|
5
|
+
}
|
|
6
|
+
alias d="mcfg devops"
|
|
7
|
+
alias c="mcfg cloud"
|
|
8
|
+
alias a="mcfg agents"
|
|
9
|
+
alias s="mcfg sessions"
|
|
10
|
+
alias ff="mcfg ftpx"
|
|
11
|
+
alias f="mcfg fire"
|
|
12
|
+
alias cs="mcfg croshell"
|
|
13
|
+
echo "mcfg command is now defined in this shell session."
|
|
@@ -1,31 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
3
|
iex (iwr "https://raw.githubusercontent.com/thisismygitrepo/machineconfig/main/src/machineconfig/setup_windows/uv.ps1").Content
|
|
4
|
-
function
|
|
5
|
-
& "$HOME\.local\bin\uv.exe" run --python 3.14 --with "machineconfig>=5.
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
function cloud
|
|
9
|
-
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
function agents {
|
|
17
|
-
& "$HOME\.local\bin\uv.exe" run --python 3.14 --with "machineconfig>=5.74" agents $args
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
function fire {
|
|
21
|
-
& "$HOME\.local\bin\uv.exe" run --python 3.14 --with "machineconfig>=5.74" fire $args
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function ftpx {
|
|
25
|
-
& "$HOME\.local\bin\uv.exe" run --python 3.14 --with "machineconfig>=5.74" ftpx $args
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
function sessions {
|
|
29
|
-
& "$HOME\.local\bin\uv.exe" run --python 3.14 --with "machineconfig>=5.74" sessions $args
|
|
30
|
-
}
|
|
31
|
-
|
|
4
|
+
function mcfg {
|
|
5
|
+
& "$HOME\.local\bin\uv.exe" run --python 3.14 --with "machineconfig>=5.84" mcfg $args
|
|
6
|
+
}
|
|
7
|
+
function d { mcfg devops @args }
|
|
8
|
+
function c { mcfg cloud @args }
|
|
9
|
+
function a { mcfg agents @args }
|
|
10
|
+
function s { mcfg sessions @args }
|
|
11
|
+
function ff { mcfg ftpx @args }
|
|
12
|
+
function f { mcfg fire @args }
|
|
13
|
+
function cs { mcfg croshell @args }
|
|
14
|
+
Write-Host "mcfg command aliases are now defined in this PowerShell session."
|
machineconfig/utils/ssh.py
CHANGED
|
@@ -6,7 +6,7 @@ from machineconfig.utils.terminal import Response, MACHINE
|
|
|
6
6
|
from machineconfig.utils.accessories import pprint
|
|
7
7
|
|
|
8
8
|
UV_RUN_CMD = "$HOME/.local/bin/uv run"
|
|
9
|
-
MACHINECONFIG_VERSION = "machineconfig>=5.
|
|
9
|
+
MACHINECONFIG_VERSION = "machineconfig>=5.84"
|
|
10
10
|
DEFAULT_PICKLE_SUBDIR = "tmp_results/tmp_scripts/ssh"
|
|
11
11
|
|
|
12
12
|
|
|
@@ -200,10 +200,10 @@ class SSH:
|
|
|
200
200
|
uv_cmd = f"""{UV_RUN_CMD} {with_clause} python {cmd_path.relative_to(Path.home())}"""
|
|
201
201
|
if venv_path is not None:
|
|
202
202
|
if self.get_remote_machine() == "Windows":
|
|
203
|
-
venv_export = f"$env:
|
|
203
|
+
venv_export = f"$env:VIRTUAL_ENV='{venv_path}';"
|
|
204
204
|
uv_cmd = venv_export + uv_cmd
|
|
205
205
|
else:
|
|
206
|
-
venv_export = f"
|
|
206
|
+
venv_export = f"VIRTUAL_ENV={venv_path}"
|
|
207
207
|
uv_cmd = venv_export + " " + uv_cmd
|
|
208
208
|
return self.run_shell(command=uv_cmd, verbose_output=verbose_output, description=description or f"run_py on {self.get_remote_repr(add_machine=False)}", strict_stderr=strict_stderr, strict_return_code=strict_return_code)
|
|
209
209
|
|