unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Brennan Vincent" <brennan@umanwizard.com>
To: guix-devel@gnu.org
Subject: Configuring aliases in bashrc with guix home
Date: Fri, 04 Oct 2024 16:26:17 +0100	[thread overview]
Message-ID: <87msjjdh46.fsf@denver.mail-host-address-is-not-set> (raw)

Hello,

By default, the `home-bash-service-type` creates a .bashrc with the
default bashrc (defined in %default-bashrc in gnu/system/shadow.scm),
followed by user-defined aliases, followed by a user-defined bashrc
file.

The problem is that %default-bashrc already contains some aliases:

alias ls='ls -p --color=auto'
alias ll='ls -l'
alias grep='grep --color=auto'
alias ip='ip -color=auto'

which makes it difficult for the user to manage her own set of
aliases. If the user wants to remove all the aliases from
%default-bashrc and set her own, she can run `unalias -a` in her own
bashrc first. But then she can't use the user-defined aliases mechanism
from home-bash-configuration, since that is added to the file before the
user-defined bashrc.

My suggestion is that when aliases is set in home-bash-configuration, we
remove the predefined default aliases from %default-bashrc. Or at least
provide an option to do so.



             reply	other threads:[~2024-10-04 15:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-04 15:26 Brennan Vincent [this message]
2024-10-13 21:07 ` Configuring aliases in bashrc with guix home Richard Sent

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=87msjjdh46.fsf@denver.mail-host-address-is-not-set \
    --to=brennan@umanwizard.com \
    --cc=guix-devel@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.
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).