dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit ffa17b40d03f1cc939cb2adfee5bcc29aba80dd8
parent 48a8e28b662873541c63a949c57969f2bf89ccdd
Author: Chris Bracken <chris@bracken.jp>
Date:   Wed,  6 May 2020 10:31:45 -0700

urxvt: eliminate hardcoding of TERM variable

This should have been part of 054305a6b057ccc5cb97a3792aeb9489061f0409
but I missed it at the time.

Diffstat:
M.zshrc | 7++-----
1 file changed, 2 insertions(+), 5 deletions(-)

diff --git a/.zshrc b/.zshrc @@ -44,17 +44,14 @@ setopt prompt_subst autoload -Uz colors && colors PROMPT='%{$fg[yellow]%}%T %{$fg[green]%}%n@%m%{$reset_color%}:%{$fg_bold[blue]%}%c%{$fg[yellow]%}$(git_branch)%{$reset_color%}%# ' -# If procfs is available, get the terminal executable. +# Set TERM for known terminals, and as a fallback when specified term is +# unavailable. term_bin="" if [[ -e /proc/$PPID/cmdline ]]; then term_bin="${$(</proc/$PPID/cmdline):t}" fi - -# Set TERM for known terminals, and as a fallback when specified term is -# unavailable. if [[ "$COLORTERM" == "gnome-terminal" ]] || \ [[ "$term_bin" == gnome-terminal* ]] || \ - [[ "$term_bin" == urxvt* ]] || \ [[ "$TERM" == "xterm-256color-italic" && ! $(tput -T"$TERM" longname > /dev/null 2>&1) ]]; then export TERM=xterm-256color fi