Risk-Aware Code Review: Auto Approve Low-Risk Changes
LiveReview LiveReview LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt LiveReview - Free, Risk-Aware Code Review: Auto Approve Low-Risk Changes | Product Hunt GitHub Install Now

We'd appreciate a star

xcwd - X current working directory

Bugs

xcwd's algorithm fails when applied to most single-instance  applications,  applications  with  tabs,  or
       terminal multiplexers.  lilyterm(1), screen(1), tmux(1), and urxvtc(1) are all known to fail.

Description

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—for  instance,  you
       might  want  to  launch a new terminal in the same directory as your editor.  You can make this happen by
       binding something like

              urxvt -cd "$(xcwd)"

       to a keyboard shortcut within your window manager and then invoking that shortcut during editor usage.

Environment

       If  xcwd  can't  figure  out the working directory associated with the currently focused window, it falls
       back on $HOME.

Exit Status

xcwd exits with a nonzero status if it can't  figure  out  the  working  directory  associated  with  the
       currently focused window and $HOME is unset.  Otherwise, xcwd returns zero.

Name

       xcwd - X current working directory

See Also

gnome-terminal(1), terminology(1), urxvt(1), xterm(1)

Synopsis

xcwd

See Also