Skip to content

Commit

Permalink
add nix-env
Browse files Browse the repository at this point in the history
  • Loading branch information
nyelonong committed Mar 8, 2024
1 parent aa315af commit 34864b2
Show file tree
Hide file tree
Showing 5 changed files with 1,921 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .direnv/bin/nix-direnv-reload
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -e
if [[ ! -d "/Users/bytedance/Projects/go/src/github.com/nyelonong/2klockercodes" ]]; then
echo "Cannot find source directory; Did you move it?"
echo "(Looking for "/Users/bytedance/Projects/go/src/github.com/nyelonong/2klockercodes")"
echo 'Cannot force reload with this script - use "direnv reload" manually and then try again'
exit 1
fi

# rebuild the cache forcefully
_nix_direnv_force_reload=1 direnv exec "/Users/bytedance/Projects/go/src/github.com/nyelonong/2klockercodes" true

# Update the mtime for .envrc.
# This will cause direnv to reload again - but without re-building.
touch "/Users/bytedance/Projects/go/src/github.com/nyelonong/2klockercodes/.envrc"

# Also update the timestamp of whatever profile_rc we have.
# This makes sure that we know we are up to date.
touch -r "/Users/bytedance/Projects/go/src/github.com/nyelonong/2klockercodes/.envrc" "/Users/bytedance/Projects/go/src/github.com/nyelonong/2klockercodes/.direnv"/*.rc
1 change: 1 addition & 0 deletions .direnv/nix-profile-24.05-8ny3r3jvj17ljzc8
Loading

0 comments on commit 34864b2

Please sign in to comment.