Skip to content

Commit

Permalink
Show loading progress when sourcing files
Browse files Browse the repository at this point in the history
  • Loading branch information
sinewalker committed Jun 13, 2019
1 parent 1d388d3 commit 201e351
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions link/.bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ function src() {
if [[ "${1}" ]]; then
source "${DOTFILES}/source/${1}.sh"
else
echo "Loading environment..."
for FILE in ${DOTFILES}/source/*.sh; do
printf "\r%${COLUNMS}s"
printf "\r<-- ${FILE}"
source "${FILE}"
done
printf "\rReady%$((${COLUMNS}-5))s"
fi
}

Expand Down

1 comment on commit 201e351

@sinewalker
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Issue #50

Please sign in to comment.