diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-03-26 00:36:52 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-03-26 00:36:52 +0900 |
| commit | 1d2a657c300fdddfe47dda9eea4b896cbf44872b (patch) | |
| tree | 28b9cf509cba8f9dd35f0a6d226111811efc196f /ar/.config/zsh/scripts.zsh | |
| parent | d9151467e4a85271333bf3e688797fba79ed2d93 (diff) | |
modified zsh/scripts.zsh, modified bin/ecrypt, modified statusbar/sb-ecrypt, created statusbar/sb-ticker
Diffstat (limited to 'ar/.config/zsh/scripts.zsh')
| -rw-r--r-- | ar/.config/zsh/scripts.zsh | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/ar/.config/zsh/scripts.zsh b/ar/.config/zsh/scripts.zsh index 05561d7..8c46c38 100644 --- a/ar/.config/zsh/scripts.zsh +++ b/ar/.config/zsh/scripts.zsh @@ -293,9 +293,8 @@ function fzf_directory() { # search scripts in ~/.local/bin alias sscs=search_scripts function search_scripts() { - scripts=("${HOME}/.local/bin/"**/*(.)) - choice="$(print -lnr ${scripts:t:r} | fzf)" - [[ "${choice}" ]] && "${EDITOR}" ${${(M)scripts:#*/${choice}*}[1]} + choice="$(find ${HOME}/.local/bin -mindepth 1 -not -path "${HOME}/.local/bin/zsh" -not -path "${HOME}/.local/bin/zsh/*" -printf '%P\n' | fzf)" + [ -f "$HOME/.local/bin/$choice" ] && $EDITOR "$HOME/.local/bin/$choice" } # check git status by directories in specific path |
