Fixes #1203 convert alias to aliases

A ungraceful patch but fixes this one case where the command is singular `alias` while the file are plural with `aliases.
pull/1312/head
Kyle Welsby 2019-01-16 18:16:08 +00:00
parent 792593c995
commit ca58587217
No known key found for this signature in database
GPG Key ID: BC51CCFC7174F463
1 changed files with 3 additions and 0 deletions

View File

@ -452,6 +452,9 @@ _enable-thing ()
for f in "${BASH_IT}/$subdirectory/available/"*.bash
do
to_enable=$(basename $f .$file_type.bash)
if [ "$file_type" = "alias" ]; then
to_enable=$(basename $f ".aliases.bash")
fi
_enable-thing $subdirectory $file_type $to_enable $load_priority
done
else