Skip to content

Commit d67d2a2

Browse files
committed
fix(lazygit): correct lumen keybindings and shell config
Add explicit bash shell config for os commands. Fix typo (outupt -> output) and update lumen commands to properly pipe to clipboard.
1 parent f490bc2 commit d67d2a2

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

home/tty/vcs/git/ancillary.nix

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,11 @@ in {
110110

111111
update.method = "never";
112112

113+
os = {
114+
shell = "${pkgs.bash}/bin/bash";
115+
shellArg = "-c";
116+
};
117+
113118
keybinding = {
114119
universal = {
115120
prevItem = "<up>";
@@ -145,16 +150,16 @@ in {
145150
{
146151
key = "<c-l>";
147152
context = "files";
148-
command = "lumen draft | tee /dev/tty | ${clipboardCmd}";
153+
command = ''bash -c "lumen draft | tee >(${clipboardCmd})"'';
149154
loadingText = "Generating message...";
150-
outupt = "popup";
155+
output = "popup";
151156
}
152157
{
153158
key = "<c-k>";
154159
context = "files";
155-
command = "lumen draft -c {{.Form.Context | quote}} | tee /dev/tty | ${clipboardCmd}";
160+
command = ''bash -c "lumen draft -c {{.Form.Context | quote}} | tee >(${clipboardCmd})"'';
156161
loadingText = "Generating message...";
157-
outupt = "popup";
162+
output = "popup";
158163
prompts = [
159164
{
160165
type = "input";

0 commit comments

Comments
 (0)