dotfiles/.local/bin/with-cwd

7 lines
66 B
Bash
Executable file

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