dotfiles/awesome/scripts/launch_alacritty.sh

11 lines
182 B
Bash
Raw Normal View History

#!/bin/bash
CHILD_PID=$(pgrep -P $1)
pushd "/proc/$CHILD_PID/cwd"
SHELL_CWD=$(pwd -P)
popd
# Start alacritty with the working directory
2022-08-06 16:17:49 +02:00
alacritty --working-directory "$SHELL_CWD"