Skip to main content
Module

x/rmw_upnp/.envrc

upnp port mapping for deno
Go to Latest
File
#!/usr/bin/env bashset -e
DIR=`pwd`
if [ ! -e "node_modules" ]; thenyarnfi

if ! hash deno 2>/dev/null; thenecho "install deno"asdf plugin-add deno https://github.com/asdf-community/asdf-deno.gitversion=$(asdf list all deno| tail -1)asdf install deno $versionasdf global deno $versionasdf reshimdeno completions zsh > /usr/local/share/zsh/site-functions/_denofi
if [ ! -e ".git/hooks/pre-commit" ]; thenrm -rf .git/hooks/pre-commitmkdir -p .git/hooksln -s ../../.direnv/git/hooks/pre-commit .git/hooks/pre-commitchmod +x .git/hooks/pre-commitfi
PATH="$DIR/.direnv/bin:$PATH"