xcwd

print the current working directory of the focused window

Install

All systems
curl cmd.cat/xcwd.sh
Debian Debian
apt-get install xcwd
Ubuntu
apt-get install xcwd
image/svg+xml Kali Linux
apt-get install xcwd
Windows (WSL2)
sudo apt-get update sudo apt-get install xcwd

xcwd

print the current working directory of the focused window

xcwd is a simple tool which prints the current working directory of the focused window. It's useful for launching applications directly into the same directory as the focused application.