Add tmux package and common dotfiles deployment

This commit is contained in:
Fabio Scotto di Santolo
2026-03-17 10:17:42 +01:00
parent c3ffa53ac8
commit c233d0a288
229 changed files with 10575 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# "vim session strategy"
#
# Restores a vim session from 'Session.vim' file, if it exists.
# If 'Session.vim' does not exist, it falls back to invoking the original
# command (without the `-S` flag).
ORIGINAL_COMMAND="$1"
DIRECTORY="$2"
vim_session_file_exists() {
[ -e "${DIRECTORY}/Session.vim" ]
}
main() {
if vim_session_file_exists; then
echo "vim -S"
else
echo "$ORIGINAL_COMMAND"
fi
}
main