mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
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:
parent
ec704b5272
commit
ebf8468807
116 changed files with 1895 additions and 1689 deletions
|
|
@ -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
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue