Erreur32 / bash_color_script.sh
0 gustos
0 bifurcaciones
1 archivos
Última actividad 1 month ago
| 1 | #!/bin/bash |
| 2 | |
| 3 | # This program is free software. It comes without any warranty, to |
| 4 | # the extent permitted by applicable law. You can redistribute it |
| 5 | # and/or modify it under the terms of the Do What The Fuck You Want |
| 6 | # To Public License, Version 2, as published by Sam Hocevar. See |
| 7 | # http://sam.zoy.org/wtfpl/COPYING for more details. |
| 8 | |
| 9 | for fgbg in 38 48 ; do #Foreground/Background |
| 10 | for color in {0..256} ; do #Colors |
Erreur32 / PROMPT_COMMAND.bash
0 gustos
0 bifurcaciones
2 archivos
Última actividad 1 month ago
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | # |
| 4 | # Source this file in your ~/.bash_profile or interactive startup file. |
| 5 | # This is done like so: |
| 6 | # |
| 7 | # [[ -s "$HOME/.rvm/contrib/ps1_functions" ]] && |
| 8 | # source "$HOME/.rvm/contrib/ps1_functions" |
| 9 | # |
| 10 | # Then in order to set your prompt you simply do the following for example |
Erreur32 / colors-in-terminal.sh
0 gustos
0 bifurcaciones
1 archivos
Última actividad 1 month ago
| 1 | for code in {30..37}; do \ |
| 2 | echo -en "\e[${code}m"'\\e['"$code"'m'"\e[0m"; \ |
| 3 | echo -en " \e[$code;1m"'\\e['"$code"';1m'"\e[0m"; \ |
| 4 | echo -en " \e[$code;3m"'\\e['"$code"';3m'"\e[0m"; \ |
| 5 | echo -en " \e[$code;4m"'\\e['"$code"';4m'"\e[0m"; \ |
| 6 | echo -e " \e[$((code+60))m"'\\e['"$((code+60))"'m'"\e[0m"; \ |
| 7 | done |
| 8 | |
| 9 | ## http://jafrog.com/2013/11/23/colors-in-terminal.html |
Siguiente
Anterior