Skip to content
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

feature request: keep current directory when opening a new tab #13

Open
bzhb opened this issue Mar 3, 2012 · 6 comments
Open

feature request: keep current directory when opening a new tab #13

bzhb opened this issue Mar 3, 2012 · 6 comments

Comments

@bzhb
Copy link

bzhb commented Mar 3, 2012

Thanks for this useful extension. I'm using it a lot. Though I miss one feature : When I open a new tab, I would like to be in the same directory than in the current tab rather than in the home directory (It could be an optional behavior with a parameter in .Xressources). I would be glad if this feature gets implemented.

@carltonf
Copy link

carltonf commented Mar 9, 2012

You might want to check a hack made by me. It depends on your window title are in the form of ".*:'". You can do this by setting some shell varaibles
In Bash, for example, set:

export PROMPT_COMMAND='printf "\033]0;%s@%s:%s\007" "${USER}" "${HOSTNAME%%.*}" "${PWD/#$HOME/~}"'

It's a very dirty hack, but it works. The link:
https://github.com/carltonf/urxvt-tabbedex/tree/experimental

PS: I failed in figuring out a better way to get the current shell's working directory. Any suggestions are welcome.

@rubik
Copy link

rubik commented Sep 19, 2012

+1 on this. I would like to have an option in .Xresources to do this.

@dwijnand
Copy link

+1

1 similar comment
@alexdantas
Copy link

+1

@atweiden
Copy link

A fork of urxvt-tabbedex linked to in this article incorporates @carltonf's suggestions. I incorporated critab on a fork of mina86/urxvt-tabbedex, which appears to be more actively developed than @stepb's:

https://github.com/atweiden/urxvt-tabbedex/tree/critabs

I hope it helps someone come up with a better solution.

See also: https://github.com/atweiden/urxvt-cwd-spawn (not working on bash at least)

@mina86
Copy link

mina86 commented Mar 18, 2018

https://github.com/mina86/urxvt-tabbedex/tree/experimental has this feature implemented. As name suggests, it’s experimental so no guarantees on whether it actually works. There’s also no configuration of this feature as of now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants