ascii-image-converter, along with alias "show" to setup scripts.
This commit is contained in:
@@ -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 ''
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user