mirror of
https://github.com/phillipberndt/autorandr
synced 2024-12-24 07:12:11 +00:00
bash_completion: load profiles only when .autorandr directory exists
This commit is contained in:
parent
4f5e2401ef
commit
2926c36940
@ -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
|
||||
--*)
|
||||
|
Loading…
Reference in New Issue
Block a user