diff options
| author | Pavel Egorov <[email protected]> | 2026-04-09 08:31:43 +0300 |
|---|---|---|
| committer | Pavel Egorov <[email protected]> | 2026-04-09 08:31:43 +0300 |
| commit | eb7b1f0429c670bbffc9e03f6bfa96b8b01934b6 (patch) | |
| tree | 71291ec40ee5e0a507f9bb43f23d4ab56c3e4be6 /.config/fish | |
| parent | 2cb4dd1be12b28ce71d8814555c8dc93c1435316 (diff) | |
| download | dotfiles-eb7b1f0429c670bbffc9e03f6bfa96b8b01934b6.tar.gz dotfiles-eb7b1f0429c670bbffc9e03f6bfa96b8b01934b6.zip | |
[fish] update install_scripts function
Diffstat (limited to '.config/fish')
| -rw-r--r-- | .config/fish/functions/install_scripts.fish | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/.config/fish/functions/install_scripts.fish b/.config/fish/functions/install_scripts.fish index 541b5bd..57aa2cb 100644 --- a/.config/fish/functions/install_scripts.fish +++ b/.config/fish/functions/install_scripts.fish | |||
| @@ -14,7 +14,9 @@ end | |||
| 14 | function install_scripts | 14 | function install_scripts |
| 15 | prepare_directories | 15 | prepare_directories |
| 16 | 16 | ||
| 17 | for script in "$LOCAL_SCRIPTS"/* | 17 | for script in "$LOCAL_SCRIPTS"/**/* |
| 18 | test ! -f "$script" && continue | ||
| 19 | |||
| 18 | if string match -q "#!*" (head -n1 "$script") | 20 | if string match -q "#!*" (head -n1 "$script") |
| 19 | string match -rq '^(?<filename>.*)(?<ext>\.[^.]*)$' (basename "$script") | 21 | string match -rq '^(?<filename>.*)(?<ext>\.[^.]*)$' (basename "$script") |
| 20 | set symlink "$LOCAL_BIN/$filename" | 22 | set symlink "$LOCAL_BIN/$filename" |
