0

Trouble:

With identical settings, and a safety check command, firing shortcuts to create new panes in Tmux on WSL only get me new panes started at home dir. Settings as well demonstrations go as below: enter image description here

Clarification: I am sourcing the same _tmux_settings script on another Linux machine, and panes are splitting nicely: right at where they should have been, the "pwd" of where I am firing it.

  • My Windows OS is: 17134.376

  • My WSL verion is: Linux LL-PC 4.4.0-17134-Microsoft #345-Microsoft Wed Sep 19 17:47:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux

Question:

How may I start new panes at current working directory, instead of being sent back to home directory? It is confusing as the return value from tmux display ... command does show that #{pane_current_path} is evaluated correctly.

References:

  • This Github Issue for WSL Mentioned that things should go well if tmux display -p '#{pane_current_path}' is working, then new panes should strat normally.
  • This Github issue for Tmux seems more relevant, but it is unclear what to do when tmux display is showing paths as they should have been.
0

An answer that is not a real answer

Well, after the following two concrete steps, the symptom I reported vanished.

  • Reinstall the Windows 10 OS, and
  • Reinstall the WSL system

By the way, I have also replaced the entire set of hardware :) In particular, I did not change anything in my ~/.tmux.conf, nor any WSL configuration files. (For WSL specifically, I did not touch anything in /etc/wsl.conf.)

Specs and screenshot (problem fixed)

Here goes the current versions of Windows & WSL, with another screenshot showing that the original problem has been resolved.

  • Windows OS Build: 17134.376.
  • WSL version: Linux PC 4.4.0-17134-Microsoft #345-Microsoft Wed Sep 19 17:47:00 PST 2018 x86_64 x86_64 x86_64 GNU/Linux

enter image description here

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.