diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-28 15:42:50 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2026-04-28 15:42:50 +0900 |
| commit | ae78dbbff81196f1d7bc8fabf84d05e6b9f3ca03 (patch) | |
| tree | fdc69ee3e2772aa4db7e8efe4bd30d101c7f82ac /fedora/.config/bash/packages.bash | |
| parent | 06ad645351572c0e7188c52028998384d718df2e (diff) | |
Diffstat (limited to 'fedora/.config/bash/packages.bash')
| -rw-r--r-- | fedora/.config/bash/packages.bash | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/fedora/.config/bash/packages.bash b/fedora/.config/bash/packages.bash deleted file mode 100644 index 27d396e..0000000 --- a/fedora/.config/bash/packages.bash +++ /dev/null @@ -1,35 +0,0 @@ -#!/bin/bash - -# --- Packages (bash version) --- -declare -A packages=( - # [zoxide]="--cmd cd --hook prompt" -) - -eval_packages() { - local package output - for package in "${!packages[@]}"; do - if command -v "$package" >/dev/null 2>&1; then - # split args by space into array (preserve empty => zero args) - local -a args=() - if [[ -n "${packages[$package]}" ]]; then - # Use builtin read to split on spaces (simple split) - IFS=' ' read -r -a args <<<"${packages[$package]}" - fi - - # Prefer initializing for bash (change to "zsh" if you really want zsh-init) - if ((${#args[@]})); then - output="$("$package" init bash "${args[@]}" 2>/dev/null)" - else - output="$("$package" init bash 2>/dev/null)" - fi - - # If the command produced output, evaluate it in current shell - if [[ -n "$output" ]]; then - eval "$output" - fi - fi - done -} - -# run initialization -eval_packages |
