diff --git a/bash_completion/autorandr b/bash_completion/autorandr index b009994..1dd716a 100644 --- a/bash_completion/autorandr +++ b/bash_completion/autorandr @@ -10,7 +10,10 @@ _autorandr () opts="-h -c -s -l -d" lopts="--help --change --save --load --default --force --fingerprint" - prfls="`find ~/.autorandr/* -maxdepth 1 -type d -printf '%f\n'`" + prfls="" + if [ -d ~/.autorandr/ ]; then + prfls="`find ~/.autorandr/* -maxdepth 1 -type d -printf '%f\n'`" + fi case "${cur}" in --*)