tree-wide: format with nixfmt

Another saturday another useless formatter change.
It's my dotfiles, after all

alejandra doesn't handle c-style inline comments well.
This commit is contained in:
Primrose 2025-11-08 10:15:58 +08:00
parent ec704b5272
commit ebf8468807
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA
116 changed files with 1895 additions and 1689 deletions

View file

@ -6,10 +6,11 @@
gnused,
lib,
symlinkJoin,
}: let
}:
let
tmux-register-session = writeShellApplication {
name = "__tmux-register-session";
runtimeInputs = [tmux];
runtimeInputs = [ tmux ];
text = ''
last=/tmp/TMUX_LAST
@ -27,7 +28,10 @@
tmux-maybe-create = writeShellApplication {
name = "__tmux-maybe-create";
runtimeInputs = [procps tmux];
runtimeInputs = [
procps
tmux
];
text = ''
session_name="$1"
session_dir="$2"
@ -40,7 +44,7 @@
tmux-attach-or-switch = writeShellApplication {
name = "__tmux-attach-or-switch";
runtimeInputs = [tmux];
runtimeInputs = [ tmux ];
text = ''
session_name="$1"
TMUX=''${TMUX:-}
@ -55,7 +59,10 @@
tmux-sessionizer = writeShellApplication {
name = "tmux-sessionizer";
runtimeInputs = [fzf gnused];
runtimeInputs = [
fzf
gnused
];
text = ''
selected=$(
{
@ -93,12 +100,12 @@
'';
};
in
symlinkJoin {
name = "tmux-sessionizer";
paths = [
tmux-register-session
tmux-maybe-create
tmux-attach-or-switch
tmux-sessionizer
];
}
symlinkJoin {
name = "tmux-sessionizer";
paths = [
tmux-register-session
tmux-maybe-create
tmux-attach-or-switch
tmux-sessionizer
];
}