Skip to content

Commit

Permalink
Update shell.nix and default.nix files
Browse files Browse the repository at this point in the history
  • Loading branch information
yousiki committed Feb 16, 2024
1 parent 14d52a2 commit 8811b7c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
16 changes: 13 additions & 3 deletions src/homeProfiles/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ with builtins // lib; {
globals.outputs.homeProfiles.catppuccin
];

catppuccin.enable = true;
catppuccin.flavor = "mocha";

programs = {
# bash
bash = {
Expand Down Expand Up @@ -178,14 +175,27 @@ with builtins // lib; {
"history"
"python"
"rust"
"shell-proxy"
"thefuck"
"zoxide"
"zsh-interactive-cd"
];
};
initExtra = ''
bindkey "\e[1;3D" backward-word # ⌥←
bindkey "\e[1;3C" forward-word # ⌥→
if [[ -f ~/.orbstack/shell/init.zsh ]]; then
source ~/.orbstack/shell/init.zsh 2>/dev/null || :
fi
'';
sessionVariables = {
SHELLPROXY_URL =
if hasSuffix "-darwin" pkgs.system
then "http://127.0.0.1:6152" # Surge
else "http://127.0.0.1:7890"; # Clash
SHELLPROXY_NO_PROXY = "localhost,127.0.0.1,pku.edu.cn,yousiki.top,ybh1998.space";
};
};
};

Expand Down
1 change: 1 addition & 0 deletions src/nixosConfigurations/yui/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
imports = with homeProfiles; [
base
lang.complete
shell
];
};
};
Expand Down

0 comments on commit 8811b7c

Please sign in to comment.