Skip to content

Commit

Permalink
Add direnv shell
Browse files Browse the repository at this point in the history
  • Loading branch information
kip93 committed May 11, 2024
1 parent e1920e4 commit c2415d9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env bash
use flake . -L --accept-flake-config
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/target
/result*
/.cargo
/.direnv

# Test outputs
/*.png
Expand Down
11 changes: 11 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,17 @@
export CARGO_HOME="$FLAKE_ROOT/.cargo"
export PATH="$PATH:$LLVM_TOOLS/bin"
printf ${lib.escapeShellArg ''
\x1B[0m
\x1B[1m,-------. cp437-tools\x1B[0m dev shell
\x1B[1m| \x1B[0mCP\x1B[31m4\x1B[32m3\x1B[34m7\x1B[0;1m |\x1B[2m`. \x1B[0;2;3m<- That right there? That's a real masterpiece!\x1B[0m
\x1B[1m| \x1B[0;36mT\x1B[35mools\x1B[0;1m |\x1B[2m;| \x1B[0;3mA Whole lotta failed attempts at shell functions\x1B[0m
\x1B[1m`-------"\x1B[2m-' \x1B[0mintended to simplify the development process.
\x1B[0m
\x1B[3mLoading environment ...\x1B[0m
\x1B[0m
''}
update() (
set -eu
cd "$FLAKE_ROOT"
Expand Down

0 comments on commit c2415d9

Please sign in to comment.