Sublime Forum

Terminal View Plugin BASIC Setup Help

#1

This may or may not have to do explicitly with ST3. But I’m confident it’s basic enough for any of you guys to help me with.

I’m trying to run Terminal View with an R console. I have R-Box, SendCode and Terminal View – all work great. All was great no problems at all until I just recently switched to ZSH. I have Oh My Zsh installed via brew.

Terminal/iTerm 2 both default to opening ZSH shell as intended. However ST3 via Terminal View opens Terminal View set to Bash. When I try to switch this to ZSH – I get:

Alis-iMac:~ USERNAME$ ZSH

1337;RemoteHost=USERNAME@Alis-iMac.local1337;CurrentDir=
133;A➜ ~ 133;B

Somewhere along I think I didn’t adjust the settings accordingly in my .zshrc file? I suspect it’s a working directory issue but could be wrong.

If anybody has any suggestions even on where to start looking to troubleshoot opening ZSH instead of the BASH Terminal View, I’d be grateful.

Thanks

0 Likes

#2

I suggest looking at the TerminalView github repo and creating an issue if you don’t find anything helpful. I personally don’t know anyone who uses that package.

0 Likes

#3

Will do. Appreciate it.

Do you have an alternative Package for Terminal you suggest? This was just the first one I found with R integration. But if it’s a terminal I should be able to run the console regardless.

0 Likes

#4

To my knowledge, TerminalView is the best terminal emulation package available. There is also SublimeREPL, but that hasn’t been updated in years and I don’t know how well it works.

Personally, I just use a separate and dedicated terminal. Having a tiling window manager and two monitors means I don’t need to have my terminal inside my editor and can instead led dedicated tools do what they do best.

0 Likes

#5

Check this https://github.com/Wramberg/TerminalView/issues/71#issuecomment-336711174

0 Likes

#6

Thanks I’ve since fixed the issue. However not with the solution posted. I think I just needed to source the correct integration file in the correct zsh/bash profile. But for completeness what’s the difference between currently:

source ~/.iterm2_shell_integration.zsh

and what’s being prescribed in the post as the remedy:

if [ “$TERM” = “xterm-256color” ] && [ -z “$INSIDE_EMACS” ]; then
[ -f “~/.iterm2_shell_integration.zsh” ] && source ~/.iterm2_shell_integration.zsh
fi

0 Likes

#7

@randy3k I found the the problem. It was coming from my .bash_profile sourcing the iterm_integration.bash file. I’m not sure why it would do this in terminal view; I wouldn’t have sourced it if wasn’t in the iterm2 shell integration readme. As of now I’ve removed it and all is as normal. Thanks for the help .

0 Likes