yoepie
This commit is contained in:
parent
a01e9c9c19
commit
d0144b72db
3
cleanup.sh
Normal file
3
cleanup.sh
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
nix-env --delete-generations old
|
||||||
|
nix-store --gc
|
||||||
|
# nix-collect-garbage -d
|
@ -102,4 +102,5 @@ cd ${BASE}
|
|||||||
|
|
||||||
nuscript_get
|
nuscript_get
|
||||||
|
|
||||||
nu --config nuscripts/config/config.nu --env-config nuscripts/config/env.nu -e 'source nuscripts/load.nu; $env.PATH = (paths_nix)'
|
nu --config nuscripts/config/config.nu --env-config nuscripts/config/env.nu \
|
||||||
|
-e 'source nuscripts/load.nu; $env.PATH = (paths_nix); herotools install_crystal; herotools install_hero'
|
15
shell.nix
15
shell.nix
@ -20,13 +20,16 @@ pkgs.mkShell {
|
|||||||
go
|
go
|
||||||
duf
|
duf
|
||||||
gdu
|
gdu
|
||||||
vscode-with-extensions
|
|
||||||
vscode-extensions.thenuprojectcontributors.vscode-nushell-lang
|
|
||||||
|
|
||||||
];
|
];
|
||||||
# shellHook = ''
|
|
||||||
# echo "Nix shell environment is ready."
|
# BIN_MC = "${pkgs.mc}/bin";
|
||||||
# hero_shell.sh
|
|
||||||
# '';
|
shellHook = ''
|
||||||
|
cd $BASE
|
||||||
|
git status
|
||||||
|
echo $BASE
|
||||||
|
$BASE/hero_shell.sh
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
8
start.sh
8
start.sh
@ -1,9 +1,11 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
MYDIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
export BASE="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
||||||
cd "$MYDIR"
|
cd "$BASE"
|
||||||
|
|
||||||
export NIXPKGS_ALLOW_UNFREE=1
|
export NIXPKGS_ALLOW_UNFREE=1
|
||||||
|
|
||||||
|
code $BASE/code
|
||||||
|
|
||||||
nix-shell
|
nix-shell
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user