aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbdus <mail@abdus.xyz>2020-08-28 11:15:31 +0530
committerAbdus <mail@abdus.xyz>2020-08-28 11:15:31 +0530
commitb15c328bc317211bf1d2a9a2954d61b3947d0a1a (patch)
tree8f9cd73f209bf159157eabe11d636a6f54286d86
parenteb9dedca15d8d201df26b2cdcee82da2ff7488e1 (diff)
downloaddotfiles-b15c328bc317211bf1d2a9a2954d61b3947d0a1a.tar.bz2
dotfiles-b15c328bc317211bf1d2a9a2954d61b3947d0a1a.zip
:books: update readme with badges'
-rw-r--r--README.md12
-rwxr-xr-xaggregate.sh21
2 files changed, 33 insertions, 0 deletions
diff --git a/README.md b/README.md
index c9e0385..1716949 100644
--- a/README.md
+++ b/README.md
@@ -2,6 +2,18 @@
<img src="https://i.imgur.com/1pMEstg.png" alt=".files" />
</p>
+<p align="center"?
+<img src='https://img.shields.io/badge/alacritty-v0.5;-blueviolet' alt='alacritty' />
+<img src='https://img.shields.io/badge/fzf-v0.22.0-blueviolet' alt='fzf' />
+<img src='https://img.shields.io/badge/git-v2.28.0-blueviolet' alt='git' />
+<img src='https://img.shields.io/badge/neofetch-v7.1.0-blueviolet' alt='neofetch' />
+<img src='https://img.shields.io/badge/vim-v8.2-blueviolet' alt='vim' />
+<img src='https://img.shields.io/badge/neovim-v0.4.4-blueviolet' alt='neovim' />
+<img src='https://img.shields.io/badge/waybar-v0.9.3-blueviolet' alt='waybar' />
+<img src='https://img.shields.io/badge/zsh-v5.8-blueviolet' alt='zsh' />
+<img src='https://img.shields.io/badge/sway-v1.5-blueviolet' alt='sway' />
+</p>
+
> dotfiles are the files that starts wth a . (dot). this files are generally
> responsible for software configurations. This repository contains dotfiles
> I use and love the most!
diff --git a/aggregate.sh b/aggregate.sh
index aaaa972..071d683 100755
--- a/aggregate.sh
+++ b/aggregate.sh
@@ -57,3 +57,24 @@ elif [[ $COMMAND == "update" ]]; then
git commit -m "$2" || git commit -m ":zap: automated updates"
git push origin master
fi
+
+# github badges: software - version number
+BADGES=""
+
+# $1 program name $2 version number
+function gen_badges () {
+ BADGES="${BADGES}<img src='https://img.shields.io/badge/$1-$2-blueviolet' alt='$1' />\n"
+}
+
+gen_badges alacritty "v$(alacritty --version | grep -oe '[0-9].[0-9]*');" # alacritty
+gen_badges fzf "v$(fzf --version | grep -oe '[0-9].*\S')"; # fzf
+gen_badges git "v$(git --version | grep -ow '[0-9].*[0-9]')" # git
+gen_badges neofetch "v$(neofetch --version | grep -oe '[0-9].*[0-9]')"; # neofetch
+gen_badges vim "v8.2" # vim
+gen_badges neovim $(nvim --version | grep -ow 'v[0-9]*.*[0-9]') # nvim
+gen_badges waybar $(waybar --version | grep -ow 'v[0-9]*.*[0-9]') # waybar
+gen_badges zsh "v$(zsh --version | grep -oe '[0-9]\.[0-9]')" # zsh
+gen_badges sway "$(sway --version | grep -oe 'v[0-9].*')" # sway
+
+echo -e $BADGES | wl-copy;
+echo "Badges Copied!"