some tweaks to nu
This commit is contained in:
parent
2a76649221
commit
44af71946e
|
@ -956,6 +956,12 @@ end
|
||||||
};
|
};
|
||||||
configFile = {
|
configFile = {
|
||||||
text = ''
|
text = ''
|
||||||
|
let fish_completer = {|spans|
|
||||||
|
fish --command $'complete "--do-complete=($spans | str join " ")"'
|
||||||
|
| $"value(char tab)description(char newline)" + $in
|
||||||
|
| from tsv --flexible --no-infer
|
||||||
|
}
|
||||||
|
|
||||||
$env.config = {
|
$env.config = {
|
||||||
show_banner: false
|
show_banner: false
|
||||||
}
|
}
|
||||||
|
@ -971,7 +977,10 @@ end
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
programs.atuin.enable = true;
|
programs.atuin = {
|
||||||
|
enable = true;
|
||||||
|
enableNushellIntegration = false;
|
||||||
|
};
|
||||||
|
|
||||||
programs.direnv = {
|
programs.direnv = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -1068,7 +1077,7 @@ end
|
||||||
padding.y = 10;
|
padding.y = 10;
|
||||||
dynamic_padding = true;
|
dynamic_padding = true;
|
||||||
};
|
};
|
||||||
shell.program = "fish";
|
shell.program = "nu";
|
||||||
font = {
|
font = {
|
||||||
normal = {
|
normal = {
|
||||||
family = "VictorMono Nerd Font";
|
family = "VictorMono Nerd Font";
|
||||||
|
|
|
@ -19,6 +19,8 @@ with lib;
|
||||||
vertico-posframe
|
vertico-posframe
|
||||||
chatgpt-shell
|
chatgpt-shell
|
||||||
denote
|
denote
|
||||||
|
nushell-ts-mode
|
||||||
|
nushell-mode
|
||||||
# geiser-guile
|
# geiser-guile
|
||||||
# flymake-guile
|
# flymake-guile
|
||||||
# flycheck-guile
|
# flycheck-guile
|
||||||
|
|
|
@ -129,7 +129,7 @@ with lib;
|
||||||
xdg-desktop-portal-kde
|
xdg-desktop-portal-kde
|
||||||
lxappearance
|
lxappearance
|
||||||
spotdl
|
spotdl
|
||||||
rustdesk
|
# rustdesk
|
||||||
# (kdenlive.override {
|
# (kdenlive.override {
|
||||||
# mlt = mlt.override {
|
# mlt = mlt.override {
|
||||||
# ffmpeg = ffmpeg-full;
|
# ffmpeg = ffmpeg-full;
|
||||||
|
|
14
scripts/rust-script-gen
Executable file
14
scripts/rust-script-gen
Executable file
|
@ -0,0 +1,14 @@
|
||||||
|
#!/usr/bin/env nu
|
||||||
|
|
||||||
|
def main [script: string] {
|
||||||
|
cd /home/chris/dev
|
||||||
|
mkdir $script
|
||||||
|
cd $script
|
||||||
|
git init
|
||||||
|
nix flake init --template templates#rust
|
||||||
|
direnv allow
|
||||||
|
echo "Try running this next:
|
||||||
|
cargo init
|
||||||
|
cargo add clap --features=derive"
|
||||||
|
emacsclient /home/chris/dev/$script
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env -S nix shell "github:nix-community/fenix?rev=092bd452904e749efa39907aa4a20a42678ac31e#minimal.toolchain" -c cargo -q -Zscript
|
#!/usr/bin/env -S nix shell "github:nix-community/fenix?rev=092bd452904e749efa39907aa4a20a42678ac31e#minimal.toolchain" -c cargo -q -Zscript
|
||||||
```cargo
|
```cargo
|
||||||
[dependencies]
|
[dependencies]
|
||||||
clap = { version = "4.2", features = ["derive"] }
|
clap = { version = "4.7", features = ["derive"] }
|
||||||
```
|
```
|
||||||
|
|
||||||
use clap::Parser;
|
use clap::Parser;
|
||||||
|
@ -10,7 +10,7 @@ use clap::Parser;
|
||||||
#[clap(version)]
|
#[clap(version)]
|
||||||
struct Args {
|
struct Args {
|
||||||
#[clap(short, long, help = "Path to config")]
|
#[clap(short, long, help = "Path to config")]
|
||||||
config: Option<std::path::PathBuf>,
|
video: Option<std::path::PathBuf>,
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|
Loading…
Reference in a new issue