aboutsummaryrefslogtreecommitdiff
path: root/shell/colors
diff options
context:
space:
mode:
authorMitch Riedstra <mitch@riedstra.us>2019-09-12 23:10:58 -0400
committerMitch Riedstra <mitch@riedstra.us>2019-09-12 23:10:58 -0400
commit75ed7b4f86cd883f32b88d5613ff46d8a21f6794 (patch)
treed38260dd255458b2a02193d4e0e2e0f6fe9f6027 /shell/colors
parent879d857e0eafa1f716d9e156862154baf49d7655 (diff)
downloaddotfiles-75ed7b4f86cd883f32b88d5613ff46d8a21f6794.tar.gz
dotfiles-75ed7b4f86cd883f32b88d5613ff46d8a21f6794.tar.xz
Split my shell configuration into multiple files and a build script to generate for multiple shells
Diffstat (limited to 'shell/colors')
-rw-r--r--shell/colors38
1 files changed, 38 insertions, 0 deletions
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
+}