ascii-image-converter, along with alias "show" to setup scripts.

This commit is contained in:
2025-08-28 16:31:00 -04:00
parent d1839e9adc
commit 29d22a1024
2 changed files with 39 additions and 0 deletions
+17
View File
@@ -221,6 +221,23 @@ fi
# ----------------------------------------------------------
read -p 'Install ascii-image-converter? [y/N]: ' response
case "${response}" in
[Yy]* )
echo \
'deb [trusted=yes] https://apt.fury.io/ascii-image-converter/ /' | \
sudo tee /etc/apt/sources.list.d/ascii-image-converter.list > /dev/null
sudo apt update
sudo apt install -y ascii-image-converter
;;
* )
echo 'Skipping'
;;
esac
echo ''
# ----------------------------------------------------------
if [ "${show_note}" = true ]; then
echo -e "\e[33myou will need to logout and back in before the 'docker' group will show up"
echo ''
+22
View File
@@ -287,6 +287,28 @@ echo ''
# ----------------------------------------------------------
if [[ -n $(command -v 'ascii-image-converter') ]]; then
read -p 'Set up alias "show" to call ascii-image-converter? [y/N]: ' response
case "${response}" in
[Yy]* )
make_bashrc_backup
( cat << 'TERM'
# ABS make show command ASCII print the given file
alias show='ascii-image-converter --color --braille --full --color-bg'
TERM
) >> "${HOME}/.bashrc"
;;
* )
echo 'Skipping'
;;
esac
echo ''
fi
# ----------------------------------------------------------
if [ "${called_backup}" = true ]; then
echo -e "\e[33mremember some changes will not take effect until you run:"
echo -e "\e[36msource ~/.bashrc\e[m"