0

tmux: add 3.4

This commit is contained in:
eleksir
2024-05-14 11:24:09 +03:00
parent 8c6a1528e4
commit da84ccd271
5 changed files with 209 additions and 0 deletions

13
tmux/doinst.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/bin/sh
config() {
NEW="$1"
OLD="$(dirname $NEW)/$(basename $NEW .new)"
# If there's no config file by that name, mv it over:
if [ ! -r $OLD ]; then
mv $NEW $OLD
elif [ "$(cat $OLD | md5sum)" = "$(cat $NEW | md5sum)" ]; then # toss the redundant copy
rm $NEW
fi
# Otherwise, we leave the .new copy for the admin to consider...
}
config etc/tmux.conf.new