tmux, vim, terminal theming

This commit is contained in:
2026-02-24 18:57:23 +00:00
parent 7d2825f9d1
commit 76f61dc5fe
10 changed files with 470 additions and 37 deletions

19
home/.tmux/tab-name.sh Executable file
View File

@@ -0,0 +1,19 @@
#!/usr/bin/env bash
# Tab name for tmux automatic-rename.
# Usage: tab-name.sh <command> <dirname>
# Shows dirname for shells, command for everything else. Truncates at 15 with ….
cmd="$1"
dir="$2"
max=15
case "$cmd" in
zsh|bash|fish|sh) name="$dir" ;;
*) name="$cmd" ;;
esac
if (( ${#name} > max )); then
echo "${name:0:$max}"
else
echo "$name"
fi