From acb88bdb7693a96fe17ff2a545a23203fd37e439 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Thu, 14 Apr 2022 16:39:35 +0200 Subject: [PATCH] direnv: Add some Rails helpers --- config/direnv/direnvrc | 2 ++ programs/fish.nix | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/config/direnv/direnvrc b/config/direnv/direnvrc index c0f32e8..12f7f5b 100644 --- a/config/direnv/direnvrc +++ b/config/direnv/direnvrc @@ -34,6 +34,8 @@ project_node() { export NPM_CONFIG_CACHE=$(direnv_layout_dir)/npm/cache export NPM_CONFIG_DEVDIR=$(direnv_layout_dir)/npm/dev + export YARN_ENABLE_TELEMETRY=false + PATH_add $NODE_PATH/bin PATH_add node_modules/.bin } diff --git a/programs/fish.nix b/programs/fish.nix index 88024ec..81d9212 100644 --- a/programs/fish.nix +++ b/programs/fish.nix @@ -83,6 +83,10 @@ ytdl = "ytdl_with_options"; ytdl_mp4 = "ytdl_with_options -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]'"; yti = "ytdl_with_options -F"; + + mysqld-direnv-init = "mysql_install_db --user $USER --datadir=$PWD/.direnv/mysql/data --auth-root-authentication-method=normal"; + mysqld-direnv = "mysqld --datadir=$PWD/.direnv/mysql/data --bind-address=127.0.0.1 --socket=$PWD/.direnv/mysql/mysqld.sock --gdb"; + redis-direnv = "redis-server --dir $PWD/.direnv/redis --bind 127.0.0.1"; }; functions = {