Skip to content

Commit

Permalink
Merge pull request #67 from nxjosephofficial/use-nala
Browse files Browse the repository at this point in the history
Configure bash to use nala wrapper instead of apt
  • Loading branch information
ChrisTitusTech committed Apr 3, 2023
2 parents bb42e9e + a34fc54 commit 3dd19f4
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -79,5 +79,45 @@ sudo nala install brave-browser -y
systemctl enable sddm
systemctl set-default graphical.target

# Configure bash to use nala wrapper instead of apt
ubashrc="/home/$username/.bashrc"
rbashrc="/root/.bashrc"
if [ -f "$ubashrc" ]; then
echo '
apt() {
command nala "$@"
}
sudo() {
if [ "$1" = "apt" ]; then
shift
command sudo nala "$@"
else
command sudo "$@"
fi
}' | tee -a "$ubashrc" > /dev/null
fi

if [ -f "$rbashrc" ]; then
echo '
apt() {
command nala "$@"
}
sudo() {
if [ "$1" = "apt" ]; then
shift
command sudo nala "$@"
else
command sudo "$@"
fi
}' | tee -a "$rbashrc" > /dev/null
fi

# Beautiful bash
git clone https://github.com/ChrisTitusTech/mybash
cd mybash
bash setup.sh
cd $builddir

# Polybar configuration
bash scripts/changeinterface

0 comments on commit 3dd19f4

Please sign in to comment.