changeset 844:9e2c5662c2cb

feat: enable OSC 133 in tmux and zsh
author zegervdv <zegervdv@me.com>
date Wed, 14 Feb 2024 18:04:24 +0100
parents 8430f87e87c8
children b0924ed8b0e1
files .chezmoiscripts/run_onchange_after_15-install-ubuntu-packages.sh.tmpl .chezmoiscripts/run_onchange_after_18-install-tmux.sh.tmpl dot_config/zsh/prompt/colors.zsh.tmpl dot_tmux.conf
diffstat 4 files changed, 11 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/.chezmoiscripts/run_onchange_after_15-install-ubuntu-packages.sh.tmpl	Tue Feb 13 20:45:26 2024 +0100
+++ b/.chezmoiscripts/run_onchange_after_15-install-ubuntu-packages.sh.tmpl	Wed Feb 14 18:04:24 2024 +0100
@@ -21,7 +21,9 @@
  	"yodl"
  	"libevent-core-2.1-7"
  	"libevent-dev"
- 	"pipx" -}}
+ 	"pipx"
+	"bison"
+	"flex" -}}
 
 {{ $ppa := list
 	"ppa:maveonair/helix-editor"
--- a/.chezmoiscripts/run_onchange_after_18-install-tmux.sh.tmpl	Tue Feb 13 20:45:26 2024 +0100
+++ b/.chezmoiscripts/run_onchange_after_18-install-tmux.sh.tmpl	Wed Feb 14 18:04:24 2024 +0100
@@ -1,7 +1,7 @@
 {{ if (and (eq .chezmoi.os "linux") (eq .chezmoi.osRelease.name "Ubuntu")) -}}
 #!/usr/bin/env bash
 
-{{ $version := "3.3a" -}}
+{{ $version := "3.4" -}}
 
 set -xe
 
--- a/dot_config/zsh/prompt/colors.zsh.tmpl	Tue Feb 13 20:45:26 2024 +0100
+++ b/dot_config/zsh/prompt/colors.zsh.tmpl	Wed Feb 14 18:04:24 2024 +0100
@@ -1,7 +1,7 @@
 {{ if .dark }}
-PROMPT=$'%F{#89dceb}%T%f%k %F{#f38ba8}%m%f %F{#89b4fa}%~%b%f%k
-%j ->\u00A0'
+PROMPT=$'%{\e]133;A\a%}%F{#89dceb}%T%f%k %F{#f38ba8}%m%f %F{#89b4fa}%~%b%f%k
+%j ->\u00A0%{\e]133;B\a%}'
 {{ else }}
-PROMPT=$'%F{#2f6f9f}%K{#f4faff}%T%f%k %F{#d71707}%m%f %F{#0b51a6}%~%b%f%k
-%j ->\u00A0'
+PROMPT=$'%{\e]133;A\a%}%F{#2f6f9f}%K{#f4faff}%T%f%k %F{#d71707}%m%f %F{#0b51a6}%~%b%f%k
+%j ->\u00A0{\e]133;B\a%}'
 {{ end }}
--- a/dot_tmux.conf	Tue Feb 13 20:45:26 2024 +0100
+++ b/dot_tmux.conf	Wed Feb 14 18:04:24 2024 +0100
@@ -78,6 +78,9 @@
 bind-key -T copy-mode-vi 'C-l' select-pane -R
 bind-key -T copy-mode-vi 'C-\' select-pane -l
 
+bind-key -T copy-mode-vi ] send-keys -X next-prompt
+bind-key -T copy-mode-vi [ send-keys -X previous-prompt
+
 unbind C-b
 set -g prefix C-Space
 bind Space send-prefix