Skip to content

Commit

Permalink
Table
Browse files Browse the repository at this point in the history
  • Loading branch information
nihsx committed Oct 24, 2021
1 parent 98b17f5 commit 4d70ab1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 9 deletions.
2 changes: 1 addition & 1 deletion helper/clone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function repositories() {

REPOSITORY_NAME=$(curl https://api.github.com/${REPOSITORY_API} 2> /dev/null | grep full_name | awk '{print $2}' | sed "s/,//g" | sed "s/\"//g")
# printf " ┃ ${COLOR_SUCCESS}%-36s${COLOR_BASED} ▎ ${COLOR_WARNING}%8s${COLOR_BASED} ┃\n" $REPOSITORY_NAME `repoSize $REPOSITORY_API`
printf "${COLOR_SUCCESS}%-36s${COLOR_BASED} ${COLOR_WARNING}%8s${COLOR_BASED} ┃\n" $REPOSITORY_NAME `repoSize $REPOSITORY_API`
printf "${COLOR_SUCCESS}%-36s${COLOR_BASED} ${COLOR_WARNING}%8s${COLOR_BASED} ┃\n" $REPOSITORY_NAME `repoSize $REPOSITORY_API`
echo -e " ╰────────────────────────────────────────────────────────────────────╯"

done
Expand Down
5 changes: 2 additions & 3 deletions helper/dotfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,12 @@ function dotFiles() {

FOLDER_SIZE=$(du -s -h $DOTFILE | awk '{print $1}')
# printf " ┃ ${COLOR_SUCCESS}%-12s${COLOR_BASED} ▎ ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $DOTFILE $FOLDER_SIZE
printf "${COLOR_SUCCESS}%-12s${COLOR_BASED} ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $DOTFILE $FOLDER_SIZE
printf "${COLOR_SUCCESS}%-12s${COLOR_BASED} ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $DOTFILE $FOLDER_SIZE
echo -e " ╰───────────────────────────────────────────────╯"

done

# echo " ╰───────────────────────────────────────────────╯
# "
# echo " ╰───────────────────────────────────────────────╯"
echo ""

}
Expand Down
5 changes: 3 additions & 2 deletions helper/package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ function packages() {
# ╰─────────────────────────────────────────────────────────────────────────────────────╯
# ┃ Package Name ┃ Version ┃ Download ┃ Installed ┃
# ╰─────────────────────────────────────────────────────────────────────────────────────╯"
echo -e "
echo -e "
╭─────────────────────────────────────────────────────────────────────────────────────╮
┃ Information Packages ┃
╰─────────────────────────────────────────────────────────────────────────────────────╯
Expand All @@ -31,12 +31,13 @@ function packages() {
DOWNLOAD_SIZE=$(apt show $PACKAGE 2> /dev/null | grep Download-Size: | awk '{print $2$3}')
INSTALLED_SIZE=$(apt show $PACKAGE 2> /dev/null | grep Installed-Size: | awk '{print $2$3}')
# printf " ┃ ${COLOR_SUCCESS}%-13s${COLOR_BASED} ▎ ${COLOR_WARNING}%10s${COLOR_BASED} ▎ ${COLOR_WARNING}%6s${COLOR_BASED} ▎ ${COLOR_WARNING}%6s${COLOR_BASED} ┃\n" $PACKAGE_NAME $VERSION $DOWNLOAD_SIZE $INSTALLED_SIZE
printf "${COLOR_SUCCESS}%-13s${COLOR_BASED} ${COLOR_WARNING}%10s${COLOR_BASED} ${COLOR_WARNING}%6s${COLOR_BASED} ${COLOR_WARNING}%6s${COLOR_BASED} ┃\n" $PACKAGE_NAME $VERSION $DOWNLOAD_SIZE $INSTALLED_SIZE
printf "${COLOR_SUCCESS}%-13s${COLOR_BASED} ${COLOR_WARNING}%10s${COLOR_BASED} ${COLOR_WARNING}%6s${COLOR_BASED} ${COLOR_WARNING}%6s${COLOR_BASED} ┃\n" $PACKAGE_NAME $VERSION $DOWNLOAD_SIZE $INSTALLED_SIZE
echo -e " ╰─────────────────────────────────────────────────────────────────────────────────────╯"
# printf " ╰───────────────────────▎──────────────────────▎───────────────────▎──────────────────╯\n"

done

# echo -e " ╰─────────────────────────────────────────────────────────────────────────────────────╯"
echo ""

}
Expand Down
5 changes: 2 additions & 3 deletions helper/themes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,12 @@ function zshTheme() {

FILE_SIZE=$(du -s -h .oh-my-zsh/custom/themes/$ZSH_CUSTOM_THEME | awk '{print $1}')
# printf " ┃ ${COLOR_SUCCESS}%-24s${COLOR_BASED} ▎ ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $ZSH_CUSTOM_THEME $FILE_SIZE
printf "${COLOR_SUCCESS}%-24s${COLOR_BASED} ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $ZSH_CUSTOM_THEME $FILE_SIZE
printf "${COLOR_SUCCESS}%-24s${COLOR_BASED} ${COLOR_WARNING}%5s${COLOR_BASED} ┃\n" $ZSH_CUSTOM_THEME $FILE_SIZE
echo -e " ╰─────────────────────────────────────────────────────────╯"

done

# echo " ╰─────────────────────────────────────────────────────────╯
# "
# echo " ╰─────────────────────────────────────────────────────────╯"
echo ""

}
Expand Down

0 comments on commit 4d70ab1

Please sign in to comment.