Search found 5 matches

by yansha
Sat Jan 08, 2022 10:49 pm
Forum: Support
Topic: Terminal doesn't auto-cd when using zsh [CLOSED]
Replies: 8
Views: 8057

Re: Terminal doesn't auto-cd when using zsh [CLOSED]

This is the full theme script from oh-my-zsh: https://github.com/ohmyzsh/ohmyzsh/blob/master/themes/agnoster.zsh-theme It's enough to use prompt_git and have it only run git status and return (as below) to stop nimble commander auto-cd from working. prompt_git() { git status return ... I found an ea...
by yansha
Fri Jan 07, 2022 7:02 pm
Forum: Support
Topic: Terminal doesn't auto-cd when using zsh [CLOSED]
Replies: 8
Views: 8057

Re: Terminal doesn't auto-cd when using zsh [CLOSED]

Last update to identify zsh is running inside nimble commander I added to .zshrc: if [ "$__CFBundleIdentifier" = 'info.filesmanager.Files' ]; then export nimble_commander=1 fi And then in zsh theme (I'm using angoster.zsh-theme) I modified the prompt_git() as follows: # Git: branch/detached head, di...
by yansha
Fri Jan 07, 2022 12:07 am
Forum: Support
Topic: Terminal doesn't auto-cd when using zsh [CLOSED]
Replies: 8
Views: 8057

Re: Terminal doesn't auto-cd when using zsh [CLOSED]

Made some progress ... Once I understood this had to do with the precmd() I started eliminating parts of my oh-my-zsh prompt. What breaks nimble commander is the 'prompt_git', and specifically running git to build the prompt. I couldn't figure out how to avoid git execution in prompt breaking nimble...
by yansha
Wed Jan 05, 2022 12:12 am
Forum: Support
Topic: Terminal doesn't auto-cd when using zsh [CLOSED]
Replies: 8
Views: 8057

Re: Terminal doesn't auto-cd when using zsh [CLOSED]

Sorry for the long time to respond When NC starts there's a set of [term] logs. In the case of bash: [2022-01-05 02:04:03.448] [term] [info] [ShellTask.cpp:258] Starting a new shell: "/bin/bash" [2022-01-05 02:04:03.448] [term] [info] [ShellTask.cpp:261] Initial work directory: /Users/myuser/ [2022-...
by yansha
Mon Dec 13, 2021 4:35 pm
Forum: Support
Topic: Terminal doesn't auto-cd when using zsh [CLOSED]
Replies: 8
Views: 8057

Re: Terminal doesn't auto-cd when using zsh [CLOSED]

Same thing happens to me, I'm using oh-my-zsh and folder doesn't synchronize between file panel and terminal.

Is there a way to resolve this?