unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Pierre Neidhardt <mail@ambrevar.xyz>
To: Tanguy Le Carrour <tanguy@bioneland.org>
Cc: help-guix@gnu.org
Subject: Re: Changing user-account's shell
Date: Fri, 19 Apr 2019 08:53:15 +0200	[thread overview]
Message-ID: <87imvaiizo.fsf@ambrevar.xyz> (raw)
In-Reply-To: <20190418202248.rnemtiamtofyh6z7@melmoth>

[-- Attachment #1: Type: text/plain, Size: 1473 bytes --]

Tanguy Le Carrour <tanguy@bioneland.org> writes:

> Le 04/17, Pierre Neidhardt a écrit :
>> I've never changed my shell in Guix, so things might be different here,
>> but I know that many other distributions expect a Bourne-compatible
>> login shell or else there will be issues when parsing some startup
>> scripts.
>
> I've been happily using Fish as my default shell (defined in `/etc/passwd`)
> for years! First on Debian, then on Parabola/Arch. And everything has
> been perfectly fine so far.

Watch out, because errors would probably be silent and remain lurking in
the shadows.

>> The recommended alternative (again, on other systems) is to drop into
>> fish from .bashrc.
>> 
>> https://wiki.archlinux.org/index.php/Fish#Setting_fish_as_interactive_shell_only
>
> Thanks! The Arch community has **really** done a great job with its wiki!
> Unfortunately, calling Fish from Bash is not really sexy! This is what I
> do on systems where I cannot set my default shell and I don't like to have to
> do one extra ctrl+d to close a terminal. ^_^'

You would not, because when you run

--8<---------------cut here---------------start------------->8---
exec fish "$@"
--8<---------------cut here---------------end--------------->8---

it replaces the Bash process, so exiting Fish would effectively
terminate the direct child process of the terminal which would then close
automatically.

-- 
Pierre Neidhardt
https://ambrevar.xyz/

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]

  reply	other threads:[~2019-04-19  6:53 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-04-17 19:59 Changing user-account's shell Tanguy Le Carrour
2019-04-18 14:45 ` Ludovic Courtès
2019-04-18 20:51   ` Tanguy Le Carrour
2019-04-19 12:04     ` Ludovic Courtès
2019-04-19 21:30       ` Tanguy Le Carrour
     [not found] ` <87d0lkz5jw.fsf@ambrevar.xyz>
2019-04-18 20:22   ` Tanguy Le Carrour
2019-04-19  6:53     ` Pierre Neidhardt [this message]
2019-04-19 21:24       ` Tanguy Le Carrour

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87imvaiizo.fsf@ambrevar.xyz \
    --to=mail@ambrevar.xyz \
    --cc=help-guix@gnu.org \
    --cc=tanguy@bioneland.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).