diff --git a/shell/shell.sh b/shell/shell.sh index 82a1ed2..e164562 100644 --- a/shell/shell.sh +++ b/shell/shell.sh @@ -1,5 +1,16 @@ SH="$(cat /proc/$$/comm)" +shell_color() { + local code="${1}" + if [ -n "${code}" ]; then + case "${SH}" in + "bash") printf "\e[0;" ;; + *) printf "\033[" ;; + esac + printf "%s" "${code}m" + fi +} + case "${SH}" in "bash") # completion