Files
Initial_linux_setup/initial_setup.sh

19 lines
626 B
Bash
Raw Normal View History

2023-11-28 14:28:36 +01:00
#!/bin/bash
# Install some programs
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:33:20 +01:00
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
# Move them about
2023-11-28 14:45:02 +01:00
sudo /bin/cp -f /tmp/zx_customconfig.fish /etc/profile.d/02-zx_customaliases.sh
sudo sed -e '1,3d' < /etc/profile.d/02-zx_customaliases.sh
sudo /bin/mv -f /tmp/zx_customconfig.fish /etc/fish/conf.d/
sudo chown root:root /etc/fish/conf.d/02-zx_customaliases.sh
2023-11-28 14:28:36 +01:00
# Show full path in prompt
set -U fish_prompt_pwd_dir_length 0