unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* use zsh as login shell
@ 2014-11-27 15:58 宋文武
  2014-11-27 20:15 ` Ludovic Courtès
  2014-12-05 13:57 ` 宋文武
  0 siblings, 2 replies; 18+ messages in thread
From: 宋文武 @ 2014-11-27 15:58 UTC (permalink / raw)
  To: guix-devel

Currently, zsh doesn't work out of box.

IMO, we should use `/etc/environment' for system variables:
    LANG=en_US.UTF-8
    PATH=/run/current-system/profile/bin:/run/setuid-programs
And add `pam_env.so' to /etc/pam.d/login, to make tty login work.

With `/etc/profile', `/etc/zlogin' just:
    source /etc/environment
to make `bash -l' and `zsh -l' work.

And `~/.bash_profile', `~/.zlogin' for user variables:
    [[ $- == *i* ]] && source ~/.bashrc # only for bash
    
    export PATH=$PATH:$HOME/.guix-profile/bin

Use `~/.bashrc', `~/.zshrc' for interactive settings:
    PS1='$ '
    alias ls='ls -p --color'
    # $(guix package --search-paths)?


Note:
  non-login interactive should inherit env from parent,
  eg: `env -i $(which bash)' spawn a shell with no PATH (what I expect).

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2014-12-07 20:36 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-27 15:58 use zsh as login shell 宋文武
2014-11-27 20:15 ` Ludovic Courtès
2014-11-28 15:06   ` 宋文武
2014-11-28 22:26     ` Ludovic Courtès
2014-11-29  3:24       ` 宋文武
2014-12-01 12:57         ` Ludovic Courtès
2014-12-02 14:43           ` 宋文武
2014-12-04 23:10             ` Ludovic Courtès
2014-12-05  5:11               ` Mark H Weaver
2014-12-05 18:54                 ` Ludovic Courtès
2014-12-05 11:21               ` 宋文武
2014-12-06  8:04                 ` use zsh and fish " 宋文武
2014-12-06 15:09                   ` Ludovic Courtès
2014-11-28 15:11   ` use zsh " 宋文武
2014-12-05 13:57 ` 宋文武
2014-12-06 22:35   ` /etc/profile and .zshrc skeleton Ludovic Courtès
2014-12-07  4:06     ` 宋文武
2014-12-07 20:35       ` Ludovic Courtès

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).