Skip to content
/ getcwd Public

fetch the current working directory of a process on OpenBSD

Notifications You must be signed in to change notification settings

sthen/getcwd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"

About

fetch the current working directory of a process on OpenBSD

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published