From 549c79795996df04500fdd203b3722ba488b99fa Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 30 Jun 2017 14:33:52 +0200 Subject: wtf --- 10_Environment.zsh | 12 ++---------- Tcaps | 12 ++++++++++++ 2 files changed, 14 insertions(+), 10 deletions(-) create mode 100644 Tcaps diff --git a/10_Environment.zsh b/10_Environment.zsh index ce82154..6df2e25 100644 --- a/10_Environment.zsh +++ b/10_Environment.zsh @@ -38,16 +38,8 @@ case "$( _process_tree )" in *) ;; esac -T_=${has_termcaps:+$termcap[as]} -_T=${has_termcaps:+$termcap[ae]} -_tq_=${${has_termcaps:+"q"}:-"-"} -_tj_=${${has_termcaps:+"j"}:-"'"} -_tk_=${${has_termcaps:+"k"}:-"."} -_tl_=${${has_termcaps:+"l"}:-","} -_tm_=${${has_termcaps:+"m"}:-"\`"} -_tt_=${${has_termcaps:+"t"}:-"]"} -_tu_=${${has_termcaps:+"u"}:-"["} -_tx_=${${has_termcaps:+"x"}:-"|"} + +source ~/zdotdir/Tcaps # I hate kik00l0l colorized prompts, so I'm using a way to # give a dominant color for each part of the prompt, each of diff --git a/Tcaps b/Tcaps new file mode 100644 index 0000000..07a22e3 --- /dev/null +++ b/Tcaps @@ -0,0 +1,12 @@ +#!/bin/zsh + +T_=${has_termcaps:+$termcap[as]} +_T=${has_termcaps:+$termcap[ae]} +_tq_=${${has_termcaps:+"q"}:-"-"} +_tj_=${${has_termcaps:+"j"}:-"'"} +_tk_=${${has_termcaps:+"k"}:-"."} +_tl_=${${has_termcaps:+"l"}:-","} +_tm_=${${has_termcaps:+"m"}:-"\`"} +_tt_=${${has_termcaps:+"t"}:-"]"} +_tu_=${${has_termcaps:+"u"}:-"["} +_tx_=${${has_termcaps:+"x"}:-"|"} -- cgit v1.2.3