fix style function
This commit is contained in:
parent
b09e7d2560
commit
ee8f3c1c75
4
bsf.sh
4
bsf.sh
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
##### bash framework
|
##### bash framework
|
||||||
# some useful bash functions to make things easier
|
# some useful bash functions to make things easier
|
||||||
# 25.3.18 mrz
|
|
||||||
# 10.7.18 add style function
|
|
||||||
|
|
||||||
## use printf for safety purposes
|
## use printf for safety purposes
|
||||||
# http://www.etalabs.net/sh_tricks.html
|
# http://www.etalabs.net/sh_tricks.html
|
||||||
@ -38,6 +36,6 @@ white () { printf '\033[1;37m' ; }
|
|||||||
# quick styler, usage "style *color*"
|
# quick styler, usage "style *color*"
|
||||||
style() {
|
style() {
|
||||||
[[ "$1" == "" ]] && orange || $1
|
[[ "$1" == "" ]] && orange || $1
|
||||||
sayn " :::"
|
sayn " ::: "
|
||||||
normal
|
normal
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user