dot

packages and services management
Log | Files | Refs | README

commit 4fd9d83d10f95d91cba34f30d313a241e61d06e2
parent ab3b43e0f78d7c6e3cbe79facbeafbc05bcc095f
Author: Josuah Demangeon <josuah.demangeon@gandi.net>
Date:   Thu,  3 Aug 2017 00:34:38 +0200

ex-vi: fix termcap

ex-vi/.exrc: set more options
ex-vi/profile: more temrinals in TERMCAP
shell/profile: set TERMCAP at every shell

Diffstat:
Mex-vi/.exrc | 4++++
Mex-vi/profile | 4+++-
Mshell/profile | 7+++++--
3 files changed, 12 insertions(+), 3 deletions(-)

diff --git a/ex-vi/.exrc b/ex-vi/.exrc @@ -1,2 +1,6 @@ set number +set showmode +set showmatch +set autoindent +set shell=/bin/sh map g 1G diff --git a/ex-vi/profile b/ex-vi/profile @@ -1,4 +1,4 @@ -export TERMCAP="vt102|$TERM|dec vt102:"' \ +TERMCAP='linux|st-256color|screen-256color|tmux-256color|xterm-256color' \ :do=^J:co#80:li#24:cl=50\E[;H\E[2J: \ :le=^H:bs:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A: \ :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m: \ @@ -8,3 +8,5 @@ export TERMCAP="vt102|$TERM|dec vt102:"' \ :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=5\EM:vt#3: \ :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:vs=\E[?7l:ve=\E[?7h: \ :mi:al=\E[L:dc=\E[P:dl=\E[M:ei=\E[4l:im=\E[4h:' + +export TERMCAP TERM_CAP="$TERMCAP" diff --git a/shell/profile b/shell/profile @@ -4,8 +4,6 @@ $([ "$(whoami)" = root ] && printf "#" || printf "$") ' PS2='... ' PS3='... ' -export TERM=xterm-256color - # core @@ -19,3 +17,8 @@ alias f='find . ! -path "*/.git/*" -type f | iomenu -p file' alias d='find . ! -path "*/.git/*" -type d | iomenu -p directory' alias c='cd "$(find "$HOME" -type d | sort | iomenu -p cd)"' alias p='p=$(io-ps)' + + +# fix for ex-vi + +export TERMCAP="$TERM_CAP"