![]() If someone else makes the same mistake, they will know that it is just a configuration issue of shortcut. So this was an error of beginner into iTerm2's world since I was used to apply old classical shortcut of default terminal. Coming from classic MacOS terminal, I was used to do a shortcut CMD+Shift+-> or CMD+Shift+ or CMD+<- and so was able to switch between 2 tabs independent. Is shortcut key necessary in this profile to open new tabs : the issue seems to come from this option since it may not concern the shortcut for a new tab ? CMD+T is already a shortcut for opening an independent tab, isn't it ? Update 4 So I downloaded the iTerm2 zip archive from iTerm2 official website. I keep on trying a solution: for this I removed the macport package and hidden files and directory ~/.iTerm2/. (where Terminology2 is a duplicate of profile Terminology (default profile).īut always the same issue, the 2 tabs are not independent: each command in one of 2 is executed on the another one. I tried to use a little apple script to force a new session to be created from current window: tell application "iTerm2" Moreover, it's silently broken: I don't see how WD should work if I have an arbitrary command (heck, who said it should be a shell), but then iTerm2 should tell me that the settings aren't compatible. I tried also to build the binary iTerm2 from the sources but issue remains. Hence, the 'Working Directory' setting (henceforth WD) is broken out of the box. From the moment, you can see the command ( /bin/bash that I launch when I open a new tab: Update 1įrom what I have seen, it seems that I have to find a way to create a new session when I do the shortcut CMD+T to get another tab independent from the current one (from which I do CMD+T).īut unfortunately, I didn't find how to create a new session in iTerm2 (inside the iTerm2 - Preferences - profile, I could execute a script that creates this new session). I saw on different forums this issue sometimes occurs. I want to keep all the current path for all others tabs except for the new one which must be the same than the previous one from which I do a CMD+T. Result worse: if I edit with vim a file in one tab, if I do a cd ~/foo/ in another tab, then the tab associated to the edited file disappears is clearing this edition and shows the same windows than the tab where I did cd ~/foo/: very strange. Then, the issue is that once tab opened, all the other tabs are affected and change from their old path to the path of the new tab: I don't understand what happens and which option to use to prevent this behavior.Įvery tab is the same than the others: if I do a cd ~/foo/, then the other tabs will go into foodirectory. Indeed, I would like to be in the same path than the previous current tab.įor this, I did the classical procedure, i.e to go to iterm2 preferences and Profile and choose Reuse previous session's directory for new tab : I have an issue about the opening of a new tab from the current tab. I have switched from default terminal on MacOS Mojave to iterm2.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |