@@ -131,7 +131,7 @@ section_install()
131
131
132
132
asdf)
133
133
msgr run " Installing asdf..."
134
- $0 asdf plugins-add \
134
+ $0 asdf plugins-install \
135
135
&& msgr yay " asdf plugins installed!"
136
136
;;
137
137
@@ -355,30 +355,30 @@ section_asdf()
355
355
plugins-install)
356
356
msgr run " Installing plugins from configuration"
357
357
358
- # Asennetaan ensin direnv jos sitä ei ole
358
+ # First install direnv if it's not installed
359
359
if ! asdf plugin list | grep -q " ^direnv$" ; then
360
360
msgr nested " Installing direnv plugin"
361
361
asdf plugin add direnv https://github.com/asdf-community/asdf-direnv.git
362
362
363
- # Asennetaan direnv latest
363
+ # Install latest direnv
364
364
local latest_direnv
365
365
latest_direnv=$( asdf latest direnv)
366
366
asdf install direnv " $latest_direnv "
367
367
asdf global direnv " $latest_direnv "
368
368
fi
369
369
370
- # Tarkistetaan että kaikki konfiguroidut pluginit on asennettu
370
+ # Check that all plugins are installed
371
371
local installed_plugins
372
372
installed_plugins=$( asdf plugin list)
373
373
374
374
while IFS= read -r line; do
375
- # Ohita tyhjät rivit ja kommentit
375
+ # Skip empty lines and comments
376
376
[[ -z $line || $line =~ ^# ]] && continue
377
377
378
378
local plugin
379
379
plugin= $( echo " $line " | awk ' {print $1}' )
380
380
381
- # Ohita direnv, käsiteltiin jo
381
+ # Skip direnv, it's already installed
382
382
[[ $plugin == " direnv" ]] && continue
383
383
384
384
if ! echo " $installed_plugins " | grep -q " ^${plugin} $" ; then
@@ -437,10 +437,11 @@ section_asdf()
437
437
local installed_plugins
438
438
installed_plugins= $( asdf plugin list | sort)
439
439
440
- # Compare .tool-versions and installed plugins, remove unknown plugins from .tool-versions
440
+ # Compare .tool-versions and installed plugins,
441
+ # remove unknown plugins from .tool-versions
441
442
msgr nested " Updating tool-versions file"
442
443
while IFS= read -r line; do
443
- # Säilytä kommentit ja tyhjät rivit
444
+ # Keep comments and empty lines
444
445
if [[ -z $line || $line =~ ^[[:space:]]* # ]]; then
445
446
echo " $line " >> " $temp_file "
446
447
continue
@@ -494,7 +495,6 @@ section_helpers()
494
495
" env:Show environment variables"
495
496
" functions:Show functions"
496
497
" nvim:Show nvim keybindings"
497
- # shellcheck disable=SC2016
498
498
' path:Show $PATH dir by dir'
499
499
" tmux:Show tmux keybindings"
500
500
" wezterm:Show wezterm keybindings"
0 commit comments