bash: factor out styletest into separate script
This commit is contained in:
parent
76435a29bc
commit
2859cbf949
2 changed files with 12 additions and 10 deletions
|
@ -392,16 +392,6 @@ solarized() {
|
|||
done
|
||||
}
|
||||
|
||||
styletest() {
|
||||
printf "$(tput bold)This text has the bold attribute.${Reset}\n"
|
||||
printf "$(tput dim)This text has the dim attribute.${Reset}\n"
|
||||
printf "$(tput smso)This text has the standout (smso) attribute.${Reset}\n"
|
||||
printf "$(tput smul)This text has the underline (smul) attribute.${Reset}\n"
|
||||
printf "$(tput blink)This text has the blink attribute.${Reset}\n"
|
||||
printf "$(tput rev)This text has the reverse attribute.${Reset}\n"
|
||||
printf "$(tput invis)This text has the invisible attribute.${Reset}\n"
|
||||
}
|
||||
|
||||
##############################################################################
|
||||
# Run external customizations
|
||||
##############################################################################
|
||||
|
|
12
roles/dotfiles/files/bin/styletest
Executable file
12
roles/dotfiles/files/bin/styletest
Executable file
|
@ -0,0 +1,12 @@
|
|||
#!/bin/sh
|
||||
|
||||
rst="$(tput sgr0)"
|
||||
|
||||
printf '%s\n' "$(tput bold)This text has the bold attribute.${rst}"
|
||||
printf '%s\n' "$(tput dim)This text has the dim attribute.${rst}"
|
||||
printf '%s\n' "$(tput smso)This text has the standout (smso) attribute.${rst}"
|
||||
printf '%s\n' "$(tput smul)This text has the underline (smul) attribute.${rst}"
|
||||
printf '%s\n' "$(tput blink)This text has the blink attribute.${rst}"
|
||||
printf '%s\n' "$(tput rev)This text has the reverse attribute.${rst}"
|
||||
printf '%s\n' "$(tput invis)This text has the invisible attribute.${rst}"
|
||||
|
Loading…
Add table
Reference in a new issue