Switch to upstream repo, change xonsh config

This commit is contained in:
JuliaLange 2024-03-16 11:12:22 -07:00
parent b12cc17adb
commit b6b6a956ee
5 changed files with 138 additions and 57 deletions

View file

@ -1,15 +1,17 @@
{ config, pkgs, ... }:
let rootPath = ./.; in
{
programs.xonsh.enable = true;
programs.xonsh.interactiveShellInit = ''
cat ~/.cache/wal/sequences
'';
home.sessionVariables = {
PROMPT = "τ ";
RIGHT_PROMPT = "{YELLOW}{gitstatus: {} }{BLUE}{short_cwd}{DEFAULT}";
VI_MODE = 1;
home.packages = with pkgs; [
xonsh
];
home.sessionVariables = {
PROMPT = "τ ";
RIGHT_PROMPT = "{YELLOW}{gitstatus: {} }{BLUE}{short_cwd}{DEFAULT}";
VI_MODE = 1;
};
xdg.configFile."xonshrc" = {
source = rootPath + "/rc.xsh";
target = "xonsh/rc.xsh";
};
}

7
programs/xonsh/rc.xsh Normal file
View file

@ -0,0 +1,7 @@
#!/usr/bin/env xonsh
if $XONSH_INTERACTIVE:
if '__HM_SESS_VARS_SOURCED' in ${...}:
del $__HM_SESS_VARS_SOURCED
source-bash "$HOME/.nix-profile/etc/profile.d/hm-session-vars.sh" --suppress-skip-message
cat "$HOME/.cache/wallust/sequences"