From f562d2d86bd1e97e8febc5e6ead10b1761e2cd49 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Wed, 23 Apr 2025 07:38:38 +0300 Subject: [PATCH] Add user .bashrc and .bash_profile files and slightly modified the system bashrc --- pkg.info | 4 ++-- source-files/bashrc | 9 +++++---- source-files/profile | 10 +++++----- source-files/user.bash_profile | 4 ++++ source-files/user.bashrc | 7 +++++++ source.sh | 7 ++++++- 6 files changed, 29 insertions(+), 12 deletions(-) create mode 100644 source-files/user.bash_profile create mode 100644 source-files/user.bashrc diff --git a/pkg.info b/pkg.info index d0a0927..d3cf21f 100644 --- a/pkg.info +++ b/pkg.info @@ -1,11 +1,11 @@ name: bash description: The Bourne-Again Shell version: 5.2.37 -revision: 2 +revision: 3 url: https://www.gnu.org/software/bash/ license: GPL3-or-later architecture: any -keep: ["etc/bashrc","etc/profile"] +keep: ["etc/bashrc","etc/profile","etc/skel/.bash_profile","etc/skel/.bashrc"] depends: ["glibc","readline","readline"] optional_depends: ["bash-completion"] provides: ["sh"] diff --git a/source-files/bashrc b/source-files/bashrc index 680435c..91ac068 100644 --- a/source-files/bashrc +++ b/source-files/bashrc @@ -1,6 +1,7 @@ # /etc/bashrc -# Setting bash prompt if not in chroot -if ! [ "$(awk '$5=="/" {print $1}'