root / arch-scripts / init.sh @ 86555df4
History | View | Annotate | Download (314 Bytes)
1 | 86555df4 | Alex Pyrgiotis | #! /bin/bash |
---|---|---|---|
2 | 86555df4 | Alex Pyrgiotis | |
3 | 86555df4 | Alex Pyrgiotis | ########################## |
4 | 86555df4 | Alex Pyrgiotis | # Functions' definitions # |
5 | 86555df4 | Alex Pyrgiotis | ########################## |
6 | 86555df4 | Alex Pyrgiotis | |
7 | 86555df4 | Alex Pyrgiotis | txtrst=$(tput sgr0) # Reset text color |
8 | 86555df4 | Alex Pyrgiotis | txtred=$(tput setaf 1) # Make text red |
9 | 86555df4 | Alex Pyrgiotis | txtgrn=$(tput setaf 2) # Make text green |
10 | 86555df4 | Alex Pyrgiotis | |
11 | 86555df4 | Alex Pyrgiotis | red_echo(){ |
12 | 86555df4 | Alex Pyrgiotis | echo -e "${txtred}${1}${txtrst}" |
13 | 86555df4 | Alex Pyrgiotis | } |
14 | 86555df4 | Alex Pyrgiotis | |
15 | 86555df4 | Alex Pyrgiotis | grn_echo(){ |
16 | 86555df4 | Alex Pyrgiotis | echo -e "${txtgrn}${1}${txtrst}" |
17 | 86555df4 | Alex Pyrgiotis | } |