1
0
Fork 0

direnv: Add some Rails helpers

This commit is contained in:
Daniel Kempkens 2022-04-14 16:39:35 +02:00
parent bc890a9bc1
commit acb88bdb76
2 changed files with 6 additions and 0 deletions

View file

@ -34,6 +34,8 @@ project_node() {
export NPM_CONFIG_CACHE=$(direnv_layout_dir)/npm/cache export NPM_CONFIG_CACHE=$(direnv_layout_dir)/npm/cache
export NPM_CONFIG_DEVDIR=$(direnv_layout_dir)/npm/dev export NPM_CONFIG_DEVDIR=$(direnv_layout_dir)/npm/dev
export YARN_ENABLE_TELEMETRY=false
PATH_add $NODE_PATH/bin PATH_add $NODE_PATH/bin
PATH_add node_modules/.bin PATH_add node_modules/.bin
} }

View file

@ -83,6 +83,10 @@
ytdl = "ytdl_with_options"; ytdl = "ytdl_with_options";
ytdl_mp4 = "ytdl_with_options -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]'"; ytdl_mp4 = "ytdl_with_options -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]'";
yti = "ytdl_with_options -F"; 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 = { functions = {