-
Notifications
You must be signed in to change notification settings - Fork 514
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PWD segment not working #112
Comments
I've added the line sourcing Not sure what the other problem is caused by, the only thing that comes to mind is what you've set the The segments work fine for me, when I open tmux it appears and when I switch between windows it updates with the correct directory displayed. Another thing to make sure is that you don't overwrite the PS1 variable after the line you added that is supposed to save the cwd (see issue #52). You can make sure you added the correct line to PS1 by entering
Depending on how many tmux panes you have. |
Did you solve the problem? |
Nope, I just pulled the master branch and got a lot of changes, but I'm finding the same issues. I created a term in codestre.am to see if it's easy to show this weird behaviour: http://codestre.am/d77f18f54b075013df4f13bed Vim colours look awful, but hey it's codestre.am fault :P |
I noticed in your Cool codestream, the video inspired 979f31a :-) |
Hahaha, thanks! It's quite long though :(. The good thing about it is that is quicker than the segment :P. About the commit, note that the set -g window-status-format "#I:#W"
set -g window-status-current-format "#[fg=colour235]⮀#[fg=default] #I ⮁ #W #[fg=colour61,bg=colour235]⮀" Just having the all-awesome powerline window, it's clear enough which one You are right, now it works perfectly. I am closing the issue :). |
That is true, 64e8e5e. |
On 9 January 2013 01:38, Erik Westrup notifications@github.com wrote:
=) |
First, the
pwd.sh
segment is missing a line sourcinglib/tmux_adapter.sh
(before that, running with bash -x throws an error saying the
get_tmux_cwd
function doesn't exist).I would add it myself, but I'm not sure if the functionality is right.
First, I added the line on my PS1 variable.
When I open tmux, nothing happens, if I open a new window, the cwd appears, but if I navigate through other directories, the segment never updates, if I travel to a different directory and then I create a new window, the segment updates on every window and doing some random changes.
Maybe I'm not understanding what the segment does, but afaik it suppose to show the current directory, so it should be changing every time I cd into one.
The text was updated successfully, but these errors were encountered: