usetaya.blogg.se

Iterm2 open new tab in same directory
Iterm2 open new tab in same directory







  1. ITERM2 OPEN NEW TAB IN SAME DIRECTORY INSTALL
  2. ITERM2 OPEN NEW TAB IN SAME DIRECTORY PLUS

> 3.6? Nearly every existing system/home dir will already define PS1 in their > Would you be totally resistant to changing the behaviour back Why not have a /etc/non-login-shells.d/ (well, we would need to choose a better name probably) to let different scripts being run depending on the type of the shell? > think it's too much to ask to make it have the same purpose for non-login > since /etc/profile.d/ exists and fulfills that role for login shells, I don't > that are sourced according to whether it's a login or non-login shell and

ITERM2 OPEN NEW TAB IN SAME DIRECTORY INSTALL

> single location is better than having to install the script to two locations > So I agree with comment 33 that I don't think a /etc/bashrc.d/ would work. That doesn't look strange to me because looks like in Fedora there are no problems with running profile.d/*.sh scripts for login and non-login shells (zsh on fedora is behaving like bash on fedora), but it will probably fail in the same way in other distributions that don't want to run profile.d scripts in non-login shells And for non-login zsh shells, the default > On fedora, the default /etc/zprofile sources /etc/profile which again loads the > The vte.sh script now also works on zsh. Whether to modify PS1 (with \) or PROMPT_COMMAND is up to the distro (although I'm leaning toward thinking that PROMPT_COMMAND would be the right place, not PS1). So I think the place to put this is in /etc/bashrc (for F17 at least).

ITERM2 OPEN NEW TAB IN SAME DIRECTORY PLUS

(And hardcoding the /etc/bashrc value plus _vte_ps1 won't work because other distros may have different defaults.) If we change it in vte.sh, that won't work. So in the login shell case, when vte.sh is sourced the PS1 is still the initial default value, and /etc/bashrc changes to its 'real default' only if it's still at that initial default value. At least here on F17, the initialisation order is as follows: I don't think automatically modifying PS1 from vte.sh is feasible.

iterm2 open new tab in same directory

That should take care of not printing anything undesirable under other terminal emulators or the linux console. VTE=3405 for vte 0.34.5), and changed _vte_ps1 to only print anything for interactive shells under vte. I've added a VTE env variable to vte that's set to the version (ie.

iterm2 open new tab in same directory

How exactly to do that (so that it doesn't interfere with other terminal emulators) isn't totally clear maybe sth like comment 7 should be implemented. > (I couldn't see anything special there :/)ĭistros should modify their default bash configuration. > file or are you applying some change in your gnome-terminal package in Fedora > What should be done downstream? Tell people to read that suggestion from NEWS > item for your distribution however, but in the meanwhile you can proceed as > Please see the NEWS file for gnome-terminal 3.7.0. > documentation with the rationale of changing bashrc to source profile.d asįedora is the Gnome reference distro, so you should simply follow their example here. > Maybe we could change it downstream, but I would need some kind of > bashrc from /etc/skel sources /etc/bashrc. On Fedora, /etc/bashrc sources the /etc/profile.d scripts too, and the default









Iterm2 open new tab in same directory