nix!: refactored homeModules

This commit is contained in:
Primrose 2024-10-12 00:55:42 +02:00
parent 1c48edddf4
commit e9f8ccd2b3
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
50 changed files with 14 additions and 41 deletions

View file

@ -0,0 +1,11 @@
function __tmux_register_session \
--description "Register the session, if it's not set yet"
### Effects:
set last /tmp/TMUX_LAST
set this (tmux display-message -p '#S')
if [ ! -f "$last" ]; or [ (cat "$last") != "$this" ]
echo "$this" >"$last"
end
end