From 3d15beaa13ffd6b144c10aadecb0c958933ea212 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 9 Feb 2025 00:05:54 +0100 Subject: [PATCH 1/2] =?UTF-8?q?apparently=20"do=20not=20edit=20this=20file?= =?UTF-8?q?"=20doesn't=20mean=20what=20I=20think=20it=20means=20?= =?UTF-8?q?=F0=9F=A4=B7=E2=80=8D=E2=99=82=EF=B8=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index b628e847..7a13384b 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -7,8 +7,8 @@ # Copyright 2012— Gregory Pakosz (@gpakosz). # # ------------------------------------------------------------------------------ -# /!\ DO NOT EDIT THIS FILE -# instead, override your .local customization file copy, see README.md /!\ +# 🚨 DO NOT MODIFY THIS FILE +# instead, override your .local customization file copy, see README.md # ------------------------------------------------------------------------------ From babf1c1fc611d28c3f2c3710c494b4e23a77ba72 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sun, 9 Feb 2025 15:02:44 +0100 Subject: [PATCH 2/2] improved #{pretty_pane_current_path} --- .tmux.conf | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.tmux.conf b/.tmux.conf index 7a13384b..a19df113 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -250,7 +250,10 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration' # if [ "$max_length" = "auto" ]; then # max_length=$(($(tmux -q display -p '#{client_width}') / 4)) # fi -# { cd "$*" && pwd || printf '%s' "$*"; } | perl -s -p -E 's|^$HOME|~|; /^.{0,$max_length}$/ || s|(~?\/[^/]+)(/[^/]+)(?:/.+)(/[^/]+)$|$1$2/...$3|g' -- -HOME="$HOME" -max_length="$max_length" +# { cd "$*" && pwd || printf '%s' "$*"; } | perl -s -p -E ' +# s|^$HOME|~|; +# /^.{0,$max_length}$/ || s|(~/[^/]+)(/[^/]+)(?:/.+)?(/[^/]+)$|$1$2/...$3|g; +# /^.{0,$max_length}$/ || s|(~/[^/]+)(/[^/]+)(?:/.+)(/[^/]+)$|$1/...$3|g;' -- -HOME="$HOME" -max_length="$max_length" # } # # if command -v pkill > /dev/null 2>&1; then