mirror of
https://github.com/phillipberndt/autorandr
synced 2025-02-21 14:27:02 +00:00
Merge pull request #146 from Ma27/fix-bashcomp-with-zsh
Work around problems with autorandr's completion when using `bashcompinit`
This commit is contained in:
commit
669ca1146e
@ -29,9 +29,9 @@ _autorandr ()
|
||||
AR_DIRS=( "${AR_DIRS[@]}" "${XDG_CONFIG_HOME:-$HOME/.config}/autorandr/" )
|
||||
fi
|
||||
|
||||
if [ -n "${AR_DIRS}" ]
|
||||
if [ "${#AR_DIRS[@]}" -gt 0 ]
|
||||
then
|
||||
prfls="$(find "${AR_DIRS[@]}" -mindepth 1 -maxdepth 1 -type d ! -name "*.d" -printf '%f\n' | sort -u)"
|
||||
prfls="$(find "${AR_DIRS[@]}" -mindepth 1 -maxdepth 1 -type d ! -name "*.d" -printf '%f\n' 2>/dev/null | sort -u)"
|
||||
else
|
||||
prfls=""
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user