some tweaks to nu
This commit is contained in:
parent
2a76649221
commit
44af71946e
5 changed files with 30 additions and 5 deletions
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
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue