Set TERM variable
Refact. Set TERM variable only for shell for git compatability.