Zimfw: prompt module on tty

Created on 13 Oct 2016  路  9Comments  路  Source: zimfw/zimfw

Please check the existing issues to make sure you're not duplicating a report.

For bug reports, please provide the following information:

  • Zim commit ref:
  • gist of .zimrc:
  • Zsh version: 5.2
  • gist of .zshrc:
  • $(uname -mosr):

Description

The prompt module on tty doesn't work, there's no theme at all. However, if I run tmux in tty, the prompt module works fine. Is this an expected behavior?

Steps to reproduce

  • Fresh installation of Arch Linux, no X-org, just tty.
  • run: prompt -l
  • Install tmux, using tmux in tty.
  • run: prompt -l

    Images or other information

with tmux
with_tmux

without tmux
without_tmux

bug wontfix

All 9 comments

This is the intended behavior. On a TTY load, it will source the .zlogin file, which will zcompile and prep some zim things. Once you get an interactive shell (after starting your X server), it should NOT read .zlogin, but rather .zshrc.

If you really want to have zim on a tty, just source .zshrc.

you really want to have zim on a tty, just source .zshrc.

err my .zshrc is empty but zim works fine except for theme not working in TTY
what is the actual solution to get it working?
source /home/user/.zshrc does nothing

I am testing this all on a clean arch installation without xorg in virtual machine
zim comes from AUR
I am fine with the defaults of zim for now, I just want theme
but as the guy above said, prompt command does nothing

I tried autoload -Uz promptinit I tried promptinit but nothing seems to get prompt command working

I also tried creating .zlogin and .zimrc and having theme set there with zprompt_theme='minimal'

Try installing using the instructions on the Readme; I do not support the zim-git package in the AUR.

Copy paste that longer thing gets me errors

https://i.imgur.com/a5TQj7B.png

syntax error near unexpected token (' ./install.sh: line 5: cat ${template_file} ${user_file}(.N) >! ${user_file}'

tried copy paste then I put it in a file, I am getting error on installation.

You're in a bash shell. The instructions explicitly say to use zsh.

Also remember to first uninstall zim-git.

In a Zsh shell, clone the repository:

In a Zsh shell

alright, after few attempts I got it installed as according to instructions
it does feel bit unnecessary complicated but I guess arch AUR spoiled me

Anyway I now tried source .zshrc and source /home/user/.zshrc but still nothing

when I ssh in I get the nice prompt and I can choose
when I just go directly through virtual machine I get just hostname%

its not that big of a deal since i feared that through ssh it would be missing too
but consistency would be nice

Okay, I just switched to a second TTY and can reproduce the symptoms. The configuration works as expected (and .zshrc is sourced on TTY login), however the prompt does not work.

I'm going to re-open this issue as it is indeed a bug, however I view this as a low priority bug; who's really doing work in a TTY?

Low-priority issue which we should fix eventually, probably. That said, I'd bet that there are a lot of small issues that would prevent this from being fixed without a lot of effort, but I don't know that for sure. I am in no way motivated to fix this.

We deprecated the prompt module. So closing this.

Was this page helpful?
0 / 5 - 0 ratings