From 4351cf36f758afb41698c0f2f008cb0cb7c415ff Mon Sep 17 00:00:00 2001 From: Morten Strandbo Date: Fri, 12 Jan 2024 09:34:51 +0100 Subject: [PATCH] v1.2 - small additions --- initial_setup.sh | 7 ++++++- zx_customconfig.fish | 4 +++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/initial_setup.sh b/initial_setup.sh index 1e6d226..b19a95d 100644 --- a/initial_setup.sh +++ b/initial_setup.sh @@ -1,5 +1,6 @@ #!/bin/bash # +# v1.2 - Changed an alias # v1.1 - Added sudo function # Install some programs @@ -8,7 +9,10 @@ sleep 1 sudo apt-get update sudo apt-get install nala -y # Switch to nala -sudo nala install exa fish neofetch -y +sudo nala install exa fish neofetch ncdu duf tldr -y +# Update tldr +echo "## Updating tldr" +tldr -u # Get some custom configs echo "## Downloading configs" @@ -24,6 +28,7 @@ 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,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" diff --git a/zx_customconfig.fish b/zx_customconfig.fish index 1374ff5..8fe3bda 100644 --- a/zx_customconfig.fish +++ b/zx_customconfig.fish @@ -13,9 +13,11 @@ alias ll="exa --sort Name --long --header" alias la="exa --sort Name --long --all --header" alias lr="exa --sort Name --long --recurse --header" alias lra="exa --sort Name --long --recurse --all --header" -alias lt="exa --sort Name --long --tree --header" +alias lt="exa --sort Name --long --tree --header --level 2" alias lta="exa --sort Name --long --tree --all --header" alias ls="exa --sort Name --header" +alias lg="exa --sort Name --long --all --header -G" +alias df="duf" # other aliases alias copy='rsync -ah --progress'