nushell play and some other tweaks

This commit is contained in:
Matt Nish-Lapidus 2025-06-30 17:11:02 -04:00
parent 62ff7c5bcf
commit c34c97d13c
5 changed files with 21 additions and 13 deletions

12
flake.lock generated
View file

@ -137,11 +137,11 @@
"nixpkgs-stable": "nixpkgs-stable"
},
"locked": {
"lastModified": 1751274822,
"narHash": "sha256-N5Kl10TFWL7mWZWR/SYiYA3+bnH2HfuB/qCFGco2HOo=",
"lastModified": 1751303444,
"narHash": "sha256-sK8xfBTztSyqWgbxzGj86ug3vSee8A61l0iwsgoNMH4=",
"owner": "nix-community",
"repo": "emacs-overlay",
"rev": "9e06201e3703da9d83c608ad31c5bb44ad0753b6",
"rev": "4a0db65ba7e8499456cacec817196eaae4cd518d",
"type": "github"
},
"original": {
@ -541,11 +541,11 @@
]
},
"locked": {
"lastModified": 1751296747,
"narHash": "sha256-/nHOfmB0C972nYX0xVF0zWmbt8ooA9TCczfeKHNvwqI=",
"lastModified": 1751309344,
"narHash": "sha256-zmb01yyOXttyhJD3kRtW6Pkt1lsPbJvN3P92/GnI0tk=",
"owner": "nix-community",
"repo": "home-manager",
"rev": "0f21ed5182a158d2f84e9136f6bf8539fd9a6890",
"rev": "78fc50f1cf8e57a974ff4bfe654563fce43d6289",
"type": "github"
},
"original": {

View file

@ -95,7 +95,7 @@
bash-env-json
bash-env-nushell
nufmt
vivid
];
programs = {

View file

@ -11,8 +11,9 @@
"rm" = "gtrash put";
"lg" = "lazygit";
"cat" = "bat --plain";
"y" = "wezterm --config-file ~/.config/wezterm/launcher.lua start --always-new-process --cwd (pwd) yazi &";
};
configFile.source = ./config.nu;
# configFile.source = ./config.nu;
loginFile.text = ''
${pkgs.figlet}/bin/figlet -f ($env.HOME)/.local/share/flf/wavy.flf (hostname)
'';
@ -25,6 +26,12 @@
settings = {
show_banner = false;
ls = { clickable_links = true; };
table = {
mode = "none";
};
color_config = {
hints = "#666666";
};
completions = {
case_sensitive = false;
quick = true;
@ -59,8 +66,10 @@
} else {
$completions
}
}
}
$env.LS_COLORS = (vivid generate one-dark)
'';
# plugins = [ pkgs.nushellPlugins.skim ];
plugins = [ pkgs.nushellPlugins.skim ];
};
}

View file

@ -26,7 +26,7 @@ home_symbol = "~"
use_os_path_sep = true
[cmd_duration]
style = '#444444'
style = '#666666'
format = '([\($duration\)]($style))'
[aws]

View file

@ -11,8 +11,7 @@
}
{
event = "before-sleep";
command = "${pkgs.systemd}/bin/loginctl lock-session";
command = "/home/emenel/.local/bin/session-lock";
}
{
event = "after-resume";