Skip to content

Commit ff911ae

Browse files
committed
add worktree commands
1 parent 0b1a123 commit ff911ae

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

modules/home-manager/shell.nix

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
let
88
zshCustomPrefix = "oh-my-zsh";
99
homeDir = config.home.homeDirectory;
10+
wtInstall = shell: ''
11+
if command -v wt >/dev/null 2>&1; then eval "$(command wt config shell init ${shell})"; fi
12+
'';
1013
in
1114
{
1215
home = {
@@ -32,6 +35,7 @@ in
3235
neofetch = "fastfetch";
3336
ncdu = "gdu";
3437
pre-commit = "prek";
38+
lwt = "lazyworktree";
3539
};
3640
};
3741

@@ -78,6 +82,7 @@ in
7882
};
7983
initContent = ''
8084
unset RPS1
85+
${wtInstall "zsh"}
8186
'';
8287
oh-my-zsh = {
8388
enable = true;
@@ -112,6 +117,7 @@ in
112117
sessionVariables = config.home.sessionVariables // { };
113118
initExtra = ''
114119
eval "$(mise activate bash)"
120+
${wtInstall "bash"}
115121
'';
116122
};
117123
}

0 commit comments

Comments
 (0)