Switch to upstream repo, change xonsh config
This commit is contained in:
parent
b12cc17adb
commit
b6b6a956ee
5 changed files with 138 additions and 57 deletions
|
|
@ -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
7
programs/xonsh/rc.xsh
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue