dotfiles/.local/bin/with-cwd

8 lines
95 B
Bash
Executable file

#! /usr/bin/bash
set -euo pipefail
IFS=$'\n\t'
cd "$1"
eval "$(direnv export bash)"
"${@:2}"