Skip to content

Latest commit

 

History

History
10 lines (8 loc) · 475 Bytes

README.md

File metadata and controls

10 lines (8 loc) · 475 Bytes

Simple tool to fetch the current working directory of a process using sysctl(2) on OpenBSD. Like "ps -o cwd -p $pid" but doesn't strip at 40 chars.

A wrapper script is provided that can be used as follows:

bind-key '"' run-shell -b "getcwd-wrapper #{?pane_active,#{pane_pid},} split-window -v"
bind-key '%' run-shell -b "getcwd-wrapper #{?pane_active,#{pane_pid},} split-window -h"
bind-key 'C' run-shell -b "getcwd-wrapper #{?pane_active,#{pane_pid},} new-window"