unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Andrew Stubbs <andrew.stubbs@gmail.com>
To: help-guix@gnu.org
Subject: Adding shell commands the .profile with guix home
Date: Thu, 1 Feb 2024 12:59:49 +0000	[thread overview]
Message-ID: <CAC1cuBQPahJF2mFxJouVSdoRURNaxUC=koPweccBmWo35oO3Lg@mail.gmail.com> (raw)

Hi,

I'm trying to figure out how to run a shell command once on SSH login,
but not in nested shells. Traditionally I've simply appended it to
.profile, but I want to switch to use guix home and I can't figure out
how. (I got my environment variables and arbitrary dot-files done.)

The manual suggests that "home-shell-profile-configuration" is the way
to go, but there's no example given.

I found this example from an old mailing list post:

(service home-shell-profile-service-type
         (home-shell-profile-configuration
          (profile '("echo hi" "source ~/.xprofile"))))

But that fails:
 error: (service home-shell-profile-service-type
(home-shell-profile-configuration (profile (quote ("echo hi" "source
~/.xprofile"))))): invalid field specifier

What's the correct way to do this, please?

Thanks

Andrew


             reply	other threads:[~2024-02-04 14:38 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-02-01 12:59 Andrew Stubbs [this message]
2024-02-05  0:38 ` Adding shell commands the .profile with guix home Carlo Zancanaro
2024-02-05 12:23   ` Andrew Stubbs

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='CAC1cuBQPahJF2mFxJouVSdoRURNaxUC=koPweccBmWo35oO3Lg@mail.gmail.com' \
    --to=andrew.stubbs@gmail.com \
    --cc=help-guix@gnu.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).