Compare commits
No commits in common. "040793a8c38d9e31ed683271532409e6adfd85b6" and "cf18c87bff4541c1500bd50df23b1fdb162a9c50" have entirely different histories.
040793a8c3
...
cf18c87bff
1 changed files with 6 additions and 27 deletions
33
home.nix
33
home.nix
|
|
@ -167,7 +167,7 @@ let
|
||||||
if [ -n "''${ZELLIJ:-}" ]; then
|
if [ -n "''${ZELLIJ:-}" ]; then
|
||||||
exec ${pkgs.bashInteractive}/bin/bash -i
|
exec ${pkgs.bashInteractive}/bin/bash -i
|
||||||
fi
|
fi
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dir="$(printf '%s\n' "$dirs" | ${pkgs.fzf}/bin/fzf \
|
dir="$(printf '%s\n' "$dirs" | ${pkgs.fzf}/bin/fzf \
|
||||||
|
|
@ -183,9 +183,8 @@ let
|
||||||
if [ -z "$dir" ]; then
|
if [ -z "$dir" ]; then
|
||||||
if [ -n "''${ZELLIJ:-}" ]; then
|
if [ -n "''${ZELLIJ:-}" ]; then
|
||||||
${pkgs.zellij}/bin/zellij action close-tab >/dev/null 2>&1 || true
|
${pkgs.zellij}/bin/zellij action close-tab >/dev/null 2>&1 || true
|
||||||
exit 0
|
|
||||||
fi
|
fi
|
||||||
exit 1
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
tab_name="$(${pkgs.coreutils}/bin/basename "$dir")"
|
tab_name="$(${pkgs.coreutils}/bin/basename "$dir")"
|
||||||
|
|
@ -231,15 +230,7 @@ let
|
||||||
text = ''
|
text = ''
|
||||||
set -euo pipefail
|
set -euo pipefail
|
||||||
|
|
||||||
while true; do
|
exec ${pkgs.zellij}/bin/zellij attach --create main --force-run-commands
|
||||||
if ${pkgs.zellij}/bin/zellij attach --create main --force-run-commands; then
|
|
||||||
if ! ${zellijNewTabZoxide}/bin/zellij-new-tab-zoxide; then
|
|
||||||
exec ${pkgs.bashInteractive}/bin/bash -i
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
exit $?
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
zellijSyncTabName = pkgs.writeShellApplication {
|
zellijSyncTabName = pkgs.writeShellApplication {
|
||||||
|
|
@ -487,7 +478,7 @@ in
|
||||||
settings = {
|
settings = {
|
||||||
# Default shell (using bash as configured in your system)
|
# Default shell (using bash as configured in your system)
|
||||||
default_shell = "bash";
|
default_shell = "bash";
|
||||||
default_layout = "zoxide-picker";
|
default_layout = "tabs-and-mode";
|
||||||
pane_frames = false;
|
pane_frames = false;
|
||||||
simplified_ui = true;
|
simplified_ui = true;
|
||||||
|
|
||||||
|
|
@ -567,9 +558,8 @@ in
|
||||||
"da" = "direnv allow";
|
"da" = "direnv allow";
|
||||||
"nfu" = "nix flake update";
|
"nfu" = "nix flake update";
|
||||||
"c" = "claude";
|
"c" = "claude";
|
||||||
"o" =
|
"o" = "opencode";
|
||||||
"OPENCODE_PERMISSION='{\"*\":\"allow\",\"external_directory\":\"allow\",\"doom_loop\":\"allow\"}' opencode";
|
"ou" = "OPENCODE_PERMISSION='\"allow\"' opencode";
|
||||||
"os" = "opencode";
|
|
||||||
".." = "z ..";
|
".." = "z ..";
|
||||||
j = "jj";
|
j = "jj";
|
||||||
jgf = "jj git fetch";
|
jgf = "jj git fetch";
|
||||||
|
|
@ -847,17 +837,6 @@ in
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
home.file.".config/opencode/opencode.json".text = builtins.toJSON {
|
|
||||||
"$schema" = "https://opencode.ai/config.json";
|
|
||||||
mcp = {
|
|
||||||
linear = {
|
|
||||||
type = "remote";
|
|
||||||
url = "https://mcp.linear.app/mcp";
|
|
||||||
enabled = true;
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
xdg.userDirs = {
|
xdg.userDirs = {
|
||||||
enable = true;
|
enable = true;
|
||||||
setSessionVariables = true;
|
setSessionVariables = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue