finalterm icon indicating copy to clipboard operation
finalterm copied to clipboard

Support for Z shell

Open shellkr opened this issue 11 years ago • 28 comments

Right now Finalterm only supports Bash which is good as it is the most popular shell.. but Zsh is also popular and should be possible to use. Zsh offer a lot of improvements over Bash.

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

shellkr avatar May 13 '13 12:05 shellkr

I agree, though that will probably only happen after Final Term (with bash) is fully stable. But I definitely intend to support all major shells in the future.

p-e-w avatar May 13 '13 15:05 p-e-w

I approve @Almehdi i use zsh every time and unfortunately i cannot use this very good terminal emulator with ZSH because the cursor is at the begin of the line, not after the prompt :s

nerzhul avatar May 21 '13 20:05 nerzhul

frankly was trying to build this until I saw no ZSH,

:(

super-nathan avatar May 22 '13 08:05 super-nathan

Please be patient, folks :)

I'll revisit zsh once Final Term works properly with bash.

p-e-w avatar May 22 '13 15:05 p-e-w

This problem is also present when we do a SSH session on a server with zsh :(

nerzhul avatar May 22 '13 17:05 nerzhul

@p-e-w Does "all major shells" include fish?

ghost avatar Jul 08 '13 19:07 ghost

@Alyxr: It does, to me at least :)

See https://github.com/p-e-w/finalterm/issues/44

p-e-w avatar Jul 08 '13 19:07 p-e-w

Maybe you must change your terminal approach because of variety of shells ?

nerzhul avatar Jul 08 '13 20:07 nerzhul

What is finalterm concerned about what shell it's running? The output of commands is the same in every shell, or does it interact more with the shell than parsing the output of known commands?

IMHO, if it was possible, I'd welcome if it just runs whatever SHELL the user has set. Feel free to state explicitly that it might break with everything except bash, but I'd still be able to run my beloved, highly configured ZSH.

tsdh avatar Jul 10 '13 19:07 tsdh

Ah, ok, I've just seen that no feature making finalterm innovative works when I start a zsh manually. Do you have some pointers/docs on what's needed to make it work with other shells?

tsdh avatar Jul 10 '13 19:07 tsdh

@tsdh: What's needed to make another shell work with Final Term is a startup script along the lines of https://github.com/p-e-w/finalterm/blob/master/data/Startup/bash_startup that injects the custom control sequences that tell Final Term what is going on inside the shell.

p-e-w avatar Jul 11 '13 04:07 p-e-w

Still waiting 'till the Final Term is fully stable! I can't wait for the Final Term with Zsh support! :D

masnormen avatar Aug 26 '13 12:08 masnormen

+1

brodock avatar Oct 03 '13 04:10 brodock

+1! I just tried finalterm and zsh + finalterm would make for a hell of a nerdgasm :P

Cosmicist avatar Oct 19 '13 03:10 Cosmicist

Just to add my +1 to have zsh support in finalterm. =-)

StuntsPT avatar Nov 21 '13 22:11 StuntsPT

+1 zsh support after Finalterm with bash was stable.

Malsasa avatar Nov 25 '13 06:11 Malsasa

:thumbsup: I also would love finalterm with ZSH support.

aboutaaron avatar Nov 26 '13 23:11 aboutaaron

:+1:

NelsonBrandao avatar Jan 16 '14 20:01 NelsonBrandao

With the most recent changes, zsh support has become a much closer goal than it was before. Please see http://blog.finalterm.org/2014/01/the-marriage-of-terminal-and-shell.html for some details.

p-e-w avatar Jan 19 '14 08:01 p-e-w

+1 This would be a highly appreciated feature

gamesbrainiac avatar Jan 23 '14 17:01 gamesbrainiac

:+1:

LightGuard avatar Mar 19 '14 22:03 LightGuard

:+1: bump FinalTerm looks nice, feels nice, but is not usable with zsh for time being. At least with my configuration (includes oh-my-zsh).

qwc avatar Jul 09 '14 11:07 qwc

If you open a normal teminal, attach it to temux and then open finalterm, and attach to that same session you will have zshell inside finalterm.

mjacobus avatar Sep 08 '14 17:09 mjacobus

@mjacobus very hard whereas there is an option to change finalterm default shell into dconf (which doesn't work)

nerzhul avatar Sep 10 '14 10:09 nerzhul

I've started to take a crack at adding zsh support here: https://github.com/detiber/finalterm/tree/zsh

So far I'm able to load finalterm using zsh as the shell, but the context menus aren't currently working properly (nor is wget progress). Any comments/suggestions are greatly appreciated.

Bootstrapping steps are here: https://github.com/detiber/finalterm/blob/zsh/README-ZSH.md

I've also started a copr build (for fedora/centos/rhel users) here: https://copr.fedoraproject.org/coprs/jdetiber/finalterm-zsh/

detiber avatar Sep 11 '14 05:09 detiber

Termlets are bash-centric (start with #!/bin/bash), that may explain why it doesn’t work. We’d need to split them shell by shell to use their own internals for speed, imho. See #338 :)

lwandrebeck avatar Sep 11 '14 07:09 lwandrebeck

@lwandrebeck indeed, I didn't get a chance to dig into the Termlets too much (other than calling out to them using zsh, and updating them to autoload functions if $ZSH_VERSION is set).

When I get some more time to hack on it I'll work on implimenting them in a zsh compatible way. I was mostly happy to have abstracted out the bashisms that were preventing zsh from even loading as the default shell.

I submitted a https://github.com/p-e-w/finalterm/pull/355 to help solicit better feedback on the changes I've made so far.

detiber avatar Sep 11 '14 17:09 detiber

:+1: That would be a killer combo

tuxayo avatar Oct 30 '14 18:10 tuxayo