2023-11-28 14:28:36 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
|
|
# Install some programs
|
2023-11-28 14:55:19 +01:00
|
|
|
echo "## Installing programs"
|
2023-11-28 22:12:06 +01:00
|
|
|
sleep 1
|
2023-11-28 14:28:36 +01:00
|
|
|
sudo apt-get update
|
2023-11-28 14:45:02 +01:00
|
|
|
sudo apt-get install nala -y
|
2023-11-28 14:28:36 +01:00
|
|
|
# Switch to nala
|
2023-11-28 14:45:02 +01:00
|
|
|
sudo nala install exa fish -y
|
2023-11-28 14:28:36 +01:00
|
|
|
|
|
|
|
|
# Get some custom configs
|
2023-11-28 14:55:19 +01:00
|
|
|
echo "## Downloading configs"
|
|
|
|
|
sleep 1
|
|
|
|
|
wget -O /tmp/zx_customconfig.fish https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/zx_customconfig.fish
|
2023-11-28 14:28:36 +01:00
|
|
|
|
2023-11-28 15:23:16 +01:00
|
|
|
# Move them about and rub
|
2023-11-28 14:55:19 +01:00
|
|
|
echo "## Placing files and rubbing 'em"
|
2023-11-28 22:12:06 +01:00
|
|
|
# Global stuff
|
2023-11-28 15:33:51 +01:00
|
|
|
sudo /bin/cp -f /tmp/zx_customconfig.fish /etc/profile.d/02-zx_customaliases.sh
|
2023-11-28 14:55:19 +01:00
|
|
|
sudo sed -i '1,3d' /etc/profile.d/02-zx_customaliases.sh
|
2023-11-28 15:04:12 +01:00
|
|
|
sudo /bin/mv -f /tmp/zx_customconfig.fish /etc/fish/conf.d/
|
2023-11-28 22:12:06 +01:00
|
|
|
sudo chown root:root /etc/fish/conf.d/zx_customconfig.fish
|
|
|
|
|
# User stuff
|
|
|
|
|
#echo "SETUVAR fish_prompt_pwd_dir_length:0" >> ~/.config/fish/fish_variables # Doesn't work, file does not exist yet.
|
|
|
|
|
echo "Remember to run this" >> ~/setup_finished
|
|
|
|
|
echo "set -U fish_prompt_pwd_dir_length 0" >> ~/setup_finished
|
2023-11-28 14:55:19 +01:00
|
|
|
|
2023-11-28 22:12:06 +01:00
|
|
|
echo "## All set up! Time to change shell ##"
|