From 75ed7b4f86cd883f32b88d5613ff46d8a21f6794 Mon Sep 17 00:00:00 2001 From: Mitch Riedstra Date: Thu, 12 Sep 2019 23:10:58 -0400 Subject: Split my shell configuration into multiple files and a build script to generate for multiple shells --- shell/colors | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 shell/colors (limited to 'shell/colors') diff --git a/shell/colors b/shell/colors new file mode 100644 index 0000000..489179f --- /dev/null +++ b/shell/colors @@ -0,0 +1,38 @@ + +setcolorterminal() { + case $TERM in + xterm-kitty) + # Prevent xterm-kitty from being turned into xterm-256color + return; + ;; + xterm*) + export TERM=xterm-256color + # printf $'\033]0;'"$(hostname)"$'\007'; + ;; + screen*) + export TERM=screen-256color + # printf $'\033k'"$(whoami)"$'\033\\'; + ;; + esac +} + +setlscolors() { + if [ "$(uname)" = "Linux" ] ; then + export LS_COLORS='di=36;40:ln=1;31;40:so=32;40:pi=33;40:ex=1;32;40:bd=34;46:cd=34;43:su=0;41:sg=0;46:tw=0;42:ow=0;43:' + elif [ "$(uname)" = "FreeBSD" ] ; then + export LSCOLORS='gxBxcxdxCxegedabagacad' + fi +} + +colormanpages() { + export LESS_TERMCAP_mb="" + export LESS_TERMCAP_md="" + export LESS_TERMCAP_me="" + export LESS_TERMCAP_se="" + export LESS_TERMCAP_so="" + export LESS_TERMCAP_ue="" + export LESS_TERMCAP_us="" + + ## Gentoo is nuts + export GROFF_NO_SGR=1 +} -- cgit v1.2.3