From c589cfa80f0281adc4ab92b0d915472702b562b2 Mon Sep 17 00:00:00 2001 From: Randall Winkhart Date: Sun, 26 Jun 2022 01:41:28 -0400 Subject: [PATCH] Added custom .bashrc --- chrootInstall.sh | 8 +++++--- config-files/bashrc | 13 +++++++++++++ 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100755 config-files/bashrc diff --git a/chrootInstall.sh b/chrootInstall.sh index bb8dc42..ab2bc0c 100755 --- a/chrootInstall.sh +++ b/chrootInstall.sh @@ -22,9 +22,6 @@ hwclock --systohc --utc pacman -S networkmanager-openrc --noconfirm rc-update add NetworkManager -# makepkg configuration - temporarily disabled -#curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/makepkg.conf -o /etc/makepkg.conf - # bootloader installation and configuration pacman -S grub efibootmgr os-prober mtools dosfstools --noconfirm if [ "$boot" == 1 ]; then @@ -55,6 +52,11 @@ $userpassword echo "permit persist keepenv $username as root" > /etc/doas.conf ln -s /usr/bin/doas /usr/bin/sudo +# misc. configuration +#curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/makepkg.conf -o /etc/makepkg.conf +curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/bashrc -o /home/"$username"/.bashrc +chown "$username":"$users" /home/"$username"/.bashrc + # pacman configuration curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/paccache-clean-hook -o /etc/pacman.d/hooks/paccache-clean.hook if [ "$gpu" == 'NVIDIA' ]; then diff --git a/config-files/bashrc b/config-files/bashrc new file mode 100755 index 0000000..879858e --- /dev/null +++ b/config-files/bashrc @@ -0,0 +1,13 @@ +# +# ~/.bashrc +# + +# If not running interactively, don't do anything +[[ $- != *i* ]] && return + +alias ls='ls --color=auto' +PS1='\033[1;36m\u@\h:\033[0m\W\033[1;36m|$\033[0m ' + +export BUILDDIR=/tmp/makepkg +export HISTSIZE=10000 +export HISTFILESIZE=100000