mirror of
https://github.com/thegeneralist01/config.git
synced 2026-05-30 08:37:01 +02:00
bump nushell
This commit is contained in:
parent
07c949f7ff
commit
cb442ce45e
3 changed files with 29 additions and 1 deletions
|
|
@ -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 = [
|
||||||
|
|
|
||||||
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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 ];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue