commit 5e7cb18e53935a995bab97e14123c8581a50479d
parent aaee1b3737f08666c2376283eefea6f9908e974f
Author: Paco Esteban <paco@e1e0.net>
Date: Sat, 13 Jun 2020 16:13:23 +0200
fix on the tmux article. `pane_current_path` is back on obsd
Diffstat:
1 file changed, 12 insertions(+), 0 deletions(-)
diff --git a/src/tmux-splitw-on-current-folder.md b/src/tmux-splitw-on-current-folder.md
@@ -1,6 +1,17 @@
# Split window on current working directory on tmux
2020-03-14
+_Update 2020-06-13: [@pertho][2] (thanks !!) points out that
+`#{pane_current_path}` is back on tmux for OpenBSD, so there's no need for all
+this. My key bindings now are:_
+
+```
+bind | split-window -c '#{pane_current_path}' -h
+bind - split-window -c '#{pane_current_path}' -v
+```
+
+_This is outdated, then. I leave it here for archive purposes_
+
In 99% of the occasions that I use `split-window` on `tmux(1)` I want the
working directory to be the same as the pane I was in.
@@ -63,4 +74,5 @@ Check `tmux(1)`, in particular the `FORMATS` section for more info.
_Have any comments ? Send an email to the [comments address][999]._
[1]: https://github.com/sthen/getcwd
+[2]: https://bsd.network/@pertho
[999]: mailto:comments@e1e0.net?Subject=Split%20window%20on%20current%20working%20directory%20on%20tmux