This commit is contained in:
2023-11-29 12:47:39 +01:00
parent b044cdcc02
commit cd02dad22f
2 changed files with 11 additions and 10 deletions

View File

@@ -11,15 +11,15 @@ sudo nala install exa fish neofetch -y
# Get some custom configs # Get some custom configs
echo "## Downloading configs" echo "## Downloading configs"
sleep 1 sleep 1
wget -O /tmp/zx_customconfig.fish https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/zx_customconfig.fish wget -q -O /tmp/zx_customconfig.fish https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/zx_customconfig.fish
wget -O /tmp/config.conf https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/config.conf wget -q -O /tmp/config.conf https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/config.conf
wget -O /tmp/st_combadge.ascii https://code.strandbo.no/morten/Initial_linux_setup/raw/branch/main/st_combadge.ascii 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 # Move them about and rub
echo "## Placing files and rubbing 'em" echo "## Placing files and rubbing 'em"
# Global stuff # Global stuff
sudo /bin/cp -f /tmp/zx_customconfig.fish /etc/profile.d/02-zx_customaliases.sh 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 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/zx_customconfig.fish /etc/fish/conf.d/
sudo chown root:root /etc/fish/conf.d/zx_customconfig.fish sudo chown root:root /etc/fish/conf.d/zx_customconfig.fish
if [[ ! -d /etc/neofetch/ ]]; then if [[ ! -d /etc/neofetch/ ]]; then
@@ -29,6 +29,6 @@ fi
sudo cp /tmp/st_combadge.ascii /etc/neofetch/ascii/ sudo cp /tmp/st_combadge.ascii /etc/neofetch/ascii/
sudo cp /tmp/config.conf /etc/neofetch/config.conf sudo cp /tmp/config.conf /etc/neofetch/config.conf
echo "## Disabling default motd" echo "## Disabling default motd"
sudo chmod -x /etc/update-motd.d/ sudo chmod -x /etc/update-motd.d/*
echo "## All set up! Time to change shell ##" echo "## All set up! Time to change shell ##"

View File

@@ -2,6 +2,12 @@ if status is-interactive
# Commands to run in interactive sessions can go here # Commands to run in interactive sessions can go here
end end
# functions and changes
set -U fish_prompt_pwd_dir_length 0
function fish_greeting
neofetch --ascii /etc/neofetch/ascii/st_combadge.ascii --config /etc/neofetch/config.conf
end
# A few aliases for exa, a ls replacement # A few aliases for exa, a ls replacement
alias ll="exa --sort Name --long --header" alias ll="exa --sort Name --long --header"
alias la="exa --sort Name --long --all --header" alias la="exa --sort Name --long --all --header"
@@ -14,8 +20,3 @@ alias ls="exa --sort Name --header"
# other aliases # other aliases
alias copy='rsync -ah --progress' alias copy='rsync -ah --progress'
# functions and changes
set -U fish_prompt_pwd_dir_length 0
function fish_greeting
neofetch --ascii /etc/neofetch/ascii/st_combadge.ascii
end