31 lines
955 B
Bash
31 lines
955 B
Bash
#!/bin/bash
|
|
|
|
# Install some programs
|
|
echo "## Installing programs"
|
|
sleep 2
|
|
sudo apt-get update
|
|
sudo apt-get install nala -y
|
|
# Switch to nala
|
|
sudo nala install exa fish -y
|
|
|
|
# Get some custom configs
|
|
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
|
|
|
|
# Move them about and rub
|
|
echo "## Placing files and rubbing 'em"
|
|
sudo /bin/cp -f /tmp/zx_customconfig.fish /etc/profile.d/02-zx_customaliases.sh
|
|
sudo sed -i '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/zx_customaliases.sh
|
|
sudo rm /tmp/zx_customconfig.fish
|
|
echo "SETUVAR fish_prompt_pwd_dir_length:0" >> ~/.config/fish/fish_variables # Doesn't work, file does not exist yet.
|
|
|
|
# Enter fish
|
|
fish
|
|
|
|
# Show full path in prompt - doesn't work
|
|
set -U fish_prompt_pwd_dir_length 0
|
|
|
|
echo "## It's done! ##" |