1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-05-30 08:37:01 +02:00

bump nushell

This commit is contained in:
TheGeneralist 2026-03-11 20:37:50 +01:00
parent 07c949f7ff
commit cb442ce45e
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
3 changed files with 29 additions and 1 deletions

View file

@ -18,7 +18,11 @@ let
replaceStrings replaceStrings
; ;
package = pkgs.nushell; unstable = import (builtins.fetchTarball {
url = "https://github.com/NixOS/nixpkgs/archive/nixos-unstable.tar.gz";
sha256 = "sha256:16xi1yijq2ccbp8254zc0b5fgz0igxvyf4yn349wj2ggk4cl6dgn";
}) { system = pkgs.system; };
package = unstable.nushell;
in in
{ {
home-manager.sharedModules = [ home-manager.sharedModules = [

View file

@ -346,6 +346,29 @@ def --env mcg [path: path]: nothing -> nothing {
jj git init --colocate jj git init --colocate
} }
# ls files sorted by latest DESC
def latest [
path: path = .
--all (-a) # show all files
number: int = 0 # optional number for head
]: nothing -> table {
let result = (
if $all {
ls --all $path
} else {
ls $path
}
| sort-by modified
| reverse
)
if ($number != 0) {
$result | first $number
} else {
$result
}
}
# Open a file in nvim using fzf. # Open a file in nvim using fzf.
def vff []: nothing -> nothing { def vff []: nothing -> nothing {
nvim (fzf) nvim (fzf)

View file

@ -1,5 +1,6 @@
{ pkgs, ... }: { { pkgs, ... }: {
homebrew.enable = true; homebrew.enable = true;
# homebrew.brews = [ "mole" ];
homebrew.casks = [ "google-chrome" ]; homebrew.casks = [ "google-chrome" ];
environment.systemPackages = [ pkgs.iina ]; environment.systemPackages = [ pkgs.iina ];
} }