From 227ba485f26bf0c5cd0d980ab23b45137357ff33 Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Tue, 5 Jul 2022 10:54:44 +0300 Subject: [PATCH] =?UTF-8?q?=D0=9E=D0=B1=D0=BD=D0=BE=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=B8=D0=B5=20=D0=BF=D0=BE=D0=B4=D0=B4=D0=B5=D1=80=D0=B6?= =?UTF-8?q?=D0=BA=D0=B8=20kitty?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 65-scripts.zsh | 9 +++++---- terminfo/mc-kitty.ini | 16 ---------------- terminfo/xterm-kitty | Bin 3297 -> 3394 bytes 3 files changed, 5 insertions(+), 20 deletions(-) delete mode 100644 terminfo/mc-kitty.ini diff --git a/65-scripts.zsh b/65-scripts.zsh index d654da2..f5e2dc4 100644 --- a/65-scripts.zsh +++ b/65-scripts.zsh @@ -95,12 +95,13 @@ getip() { # для работы mc в терминале kitty будут перезаписаны mc-kitty-add() { local mc_cfg="${HOME}/.config/mc/ini" - local mc_term="${ZDOTDIR}/terminfo/mc-kitty.ini" - [[ "x$1" == "x-f" ]] && sed -i '/\[terminal:xterm-kitty\]/,/^$/{d}' "${mc_cfg}" - if [ -w "${mc_cfg}" -a -r "${mc_term}" ]; then + [[ "$1" == "-f" ]] && sed -i '/\[terminal:xterm-kitty\]/,/^$/{d}' "${mc_cfg}" + if [ -w "${mc_cfg}" ]; then if ! grep -qF "[terminal:xterm-kitty]" "${mc_cfg}" ; then - cat "${mc_term}" >> "${mc_cfg}" + echo >> "${mc_cfg}" + echo "[terminal:xterm-kitty]" >> "${mc_cfg}" + echo "copy=xterm" >> "${mc_cfg}" fi fi } diff --git a/terminfo/mc-kitty.ini b/terminfo/mc-kitty.ini deleted file mode 100644 index c7ae62e..0000000 --- a/terminfo/mc-kitty.ini +++ /dev/null @@ -1,16 +0,0 @@ - -[terminal:xterm-kitty] -f11=\\e[1\;2P -f12=\\e[1\;2Q -f13=\\e[1\;2R -f14=\\e[1\;2S -f15=\\e[15\;2~ -f16=\\e[17\;2~ -f17=\\e[18\;2~ -f18=\\e[19\;2~ -f19=\\e[20\;2~ -f20=\\e[21\;2~ -complete=\\e^i -backtab=\\e[Z -backspace= - diff --git a/terminfo/xterm-kitty b/terminfo/xterm-kitty index 83fbb786be33b0102884f75405e06a596e2918ab..185d9119fd4c2da9bad78749b18258cae47c1af4 100644 GIT binary patch delta 518 zcmX|+O-NL66vfZ|pF7nwG7;#2GXs8LP+3EhqZ5vpR%3!j5|T+Gf-USrC|p#V%!MF| zkUT^SB0-R%wB#vB6j8w}iWWhO0x^|nWt(s%!Sr}Dyu0|FbMLu}dpC+dgactILKORO zRpu81;}UvqvR=K+d)rt;rgU)0EPLS_*M0Q*Pv)!n?sh*N{?5<;czHIvZFUT}n?V*a z$_gG~f^|H@R<^T?y}ZU-yu!QBa_iF8zP^iS`J?EJUpR?UqkUgBw zV!nR+C>KmHjmY^X0Fle_)bX^v=KE{*g3jP1hH%mPv1g!TR3>Cvp2(cMkc_MgoO~C8 zC`2(zZ~&EvBZ)dRq6sZ%LpwUrjb8Mj9|O3HK@4LI6PUtd%;FgqU}FVut%v@yNVy!8 zm?WfD>gBXF%Q?9q9nvLNpONUP^w}z0cbITl N?Xt#Y(w+;Xd38r;WbQ_BymWGf(6P?xFvejAGb`tS-q`$tP^WKPy)UjX6?TH!?iA#@;$81AAM_tB3*3}Y1Ic#Nlb zh9pvWjWjY?z%o{_ig(z+Ch{oZlby4|o_2}IEx98-5|@XPkVp1UD_D#=KTFYa$K?_o Cqnd~S