refactoring and nushell
This commit is contained in:
parent
359e58f469
commit
396aee7db9
10 changed files with 301 additions and 92 deletions
25
modules/home/shell-conf/nushell/nushell.nix
Normal file
25
modules/home/shell-conf/nushell/nushell.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.nushell = {
|
||||
enable = true;
|
||||
shellAliases = {
|
||||
"em" = "emacsclient -n -r";
|
||||
"gtr" = "gtrash -r";
|
||||
"rm" = "gtrash put";
|
||||
};
|
||||
|
||||
loginFile.text = ''
|
||||
${pkgs.figlet}/bin/figlet -f ($env.HOME)/.local/share/flf/wavy.flf (hostname)
|
||||
'';
|
||||
environmentVariables = {
|
||||
ENV_CONVERSIONS.PATH = {
|
||||
from_string = lib.hm.nushell.mkNushellInline "{|s| $s | split row (char esep) }";
|
||||
to_string = lib.hm.nushell.mkNushellInline "{|v| $v | str join (char esep) }";
|
||||
};
|
||||
};
|
||||
settings = {
|
||||
show_banner = false;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue