[Bug 1835077] [NEW] [FEATURE] Add support for ~/.bashrc.d/*

PHD 1835077 at bugs.launchpad.net
Tue Jul 2 15:40:48 UTC 2019


Public bug reported:

In ~/.profile add support for ~/.bashrc.d/* alongside ~/.bashrc

# include all files from .bashrc.d/
if [ -d "$HOME/.bashrc.d" ]; then
    for rc in "$HOME/.bashrc.d/"*; do
        if [ -f "$rc" ]; then
            . "$rc"
        fi
    done
fi

Patch for /etc/skel/.profile in the attachment.

** Affects: bash (Ubuntu)
     Importance: Undecided
         Status: New

** Patch added: "patch for /etc/skle/.profile"
   https://bugs.launchpad.net/bugs/1835077/+attachment/5274709/+files/etc--skel--.profile.diff

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to bash in Ubuntu.
https://bugs.launchpad.net/bugs/1835077

Title:
  [FEATURE]  Add support for ~/.bashrc.d/*

Status in bash package in Ubuntu:
  New

Bug description:
  In ~/.profile add support for ~/.bashrc.d/* alongside ~/.bashrc

  # include all files from .bashrc.d/
  if [ -d "$HOME/.bashrc.d" ]; then
      for rc in "$HOME/.bashrc.d/"*; do
          if [ -f "$rc" ]; then
              . "$rc"
          fi
      done
  fi

  Patch for /etc/skel/.profile in the attachment.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/bash/+bug/1835077/+subscriptions



More information about the foundations-bugs mailing list