Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

default zshrc causes trolling #10

Open
mlyle opened this issue Sep 2, 2017 · 19 comments
Open

default zshrc causes trolling #10

mlyle opened this issue Sep 2, 2017 · 19 comments

Comments

@mlyle
Copy link

mlyle commented Sep 2, 2017

Using a base16 theme by default causes really non-intuitive behavior-- I installed manjaro as a CLI / headless distribution, then ssh'd to it. The background color for my terminal and terminal colors were "permanently" changed on my host machine. Then I had to figure out that this was in turn the skel .zshrc and not /etc/zsh/zprofile, /etc/bash.bashrc, or some default terminfo thing... in the end, I threw up my hands and resorted to trolling on IRC.

@jonathonf
Copy link

I can confirm the issue. :)

@Chrysostomus
Copy link
Owner

Hmm... It definately should not trigger with ssh. That is not intended behavior. Seems to me that this theming is quite complicated to get right as a general solution. I'm considering disabling it by default.

Could you give me the output of this line when you are ssh'd to your manjaro?

     basename "$(cat "/proc/$PPID/comm")

This is what is used to determine if the theming should be applied.

@mlyle
Copy link
Author

mlyle commented Sep 3, 2017

@Chrysostomus is there a problem with the package in repositories? I'm brand new to manjaro, but the version installed on my system in /etc/skel matches b07f66d, even after sudo pacman -Syu ... am I being an idiot somehow?

@mlyle
Copy link
Author

mlyle commented Sep 3, 2017

@Chrysostomus
Copy link
Owner

It's probably outdated

@mlyle
Copy link
Author

mlyle commented Sep 5, 2017

How do packages get updated?

@excalibur1234
Copy link
Contributor

How do packages get updated?

it is @Chrysostomus' package. he can update it.
the PKGBUILD is located here:
https://github.com/manjaro/packages-community/tree/master/manjaro-zsh-config

@Chrysostomus
Copy link
Owner

It gets updated when I build the package and upload it to repos with boxit. It goes straight to unstable and gets snapped to stable within two weeks or so.

It is going to take some time before I get around to do it, because I'm in the middle of moving to a new apartment.

@Chrysostomus
Copy link
Owner

Theoretically it could happen faster if someone else has time to build it sooner. @jonathonf , would you like to rebuild and upload the package?

@jonathonf
Copy link

I can do - I don't understand the repo layout though.

https://github.com/manjaro/packages-community/tree/master/manjaro-zsh-config has no files and only references https://github.com/Chrysostomus/manjaro-zsh-config as its source.

What's the correct, current, package source and version?

@Chrysostomus
Copy link
Owner

I'm not sure. I uploaded the new version now to unstable as 0.7. I always get confused with these pkgbuilds that point to specific git commit. I probably already updated the package earlier, but forgot to update the git commit line, so it bumped the version without actually changing the files... Well that's embarrassing...

@Chrysostomus
Copy link
Owner

But anyway, can someone tell me what is the output of

    basename "$(cat "/proc/$PPID/comm")

when ssh'd to manjaro? I'm thinking of adding an exception for ssh, but I need a pattern for that. If it creates too many patterns, I might have to reverse the logic and instead list the terminals where the colors can be used.

@mlyle
Copy link
Author

mlyle commented Sep 6, 2017

~ >>> basename "$(cat "/proc/$PPID/comm")"                                           
sshd
~ >>> ps -p$PPID                                                                     
  PID TTY          TIME CMD
 1096 ?        00:00:00 sshd

@Chrysostomus
Copy link
Owner

Thanks, that seems promising.

@mlyle
Copy link
Author

mlyle commented Sep 6, 2017

I still think this is evil. If you're going to do it, better to whitelist.. or just not to do it at all, and leave it commented in the file where a user can easily enable it if they're a moron who likes this kind of thing.

@Chrysostomus
Copy link
Owner

Yeah... That might make sense. Really the only terminal that really needs it is st, for others it is up to the user preference.

@mlyle
Copy link
Author

mlyle commented Sep 6, 2017

I mean, I'm not judging. People on the short bus need interactive terminal sessions, too.

@Chrysostomus
Copy link
Owner

I don't know what that means. But I think the first priority should be to have a working general solution. For me the second priority is to have something that works with st-manjaro. It doesn't have option to configure colors without recompiling it, so setting colors from a script makes a lot sense. Personally I like it in general, but it just doesn't work with all setups.

@jonathonf
Copy link

If this is for one terminal that's not a default of the official editions it probably doesn't need to be enabled by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants