43 lines
1.6 KiB
Bash
43 lines
1.6 KiB
Bash
#!/bin/bash
|
|
#
|
|
# v1.21 - Added an alias
|
|
# v1.2 - Changed an alias
|
|
# v1.1 - Added sudo function
|
|
|
|
# Install some programs
|
|
echo "## Installing programs"
|
|
sleep 1
|
|
sudo apt-get update
|
|
sudo apt-get install nala -y
|
|
# Switch to nala
|
|
sudo nala install exa fish neofetch ncdu duf tldr -y
|
|
# Update tldr
|
|
echo "## Updating tldr"
|
|
tldr -u
|
|
|
|
# Get some custom configs
|
|
echo "## Downloading configs"
|
|
sleep 1
|
|
wget -q -O /tmp/zx_customconfig.fish https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/zx_customconfig.fish
|
|
wget -q -O /tmp/sudo.fish https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/functions/sudo.fish
|
|
wget -q -O /tmp/config.conf https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/config.conf
|
|
wget -q -O /tmp/st_combadge.ascii https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/st_combadge.ascii
|
|
|
|
# Move them about and rub
|
|
echo "## Placing files and rubbing 'em"
|
|
# Global stuff
|
|
sudo /bin/cp -f /tmp/zx_customconfig.fish /etc/profile.d/02-zx_customaliases.sh
|
|
sudo sed -i '1,9d' /etc/profile.d/02-zx_customaliases.sh
|
|
sudo /bin/mv -f /tmp/zx_customconfig.fish /etc/fish/conf.d/
|
|
sudo /bin/mv -f /tmp/sudo.fish /etc/fish/functions/
|
|
sudo chown root:root /etc/fish/conf.d/zx_customconfig.fish
|
|
if [[ ! -d /etc/neofetch/ ]]; then
|
|
echo "## Creating neofetch config directory"
|
|
sudo mkdir -p /etc/neofetch/ascii/
|
|
fi
|
|
sudo cp /tmp/st_combadge.ascii /etc/neofetch/ascii/
|
|
sudo cp /tmp/config.conf /etc/neofetch/config.conf
|
|
echo "## Disabling default motd"
|
|
sudo chmod -x /etc/update-motd.d/*
|
|
|
|
echo "## All set up! Time to change shell ##" |