sh_linux_installation_scripts/common/apps/debian/lsd.sh

25 lines
747 B
Bash
Raw Normal View History

2021-03-04 16:39:10 +01:00
#!/bin/bash
install_lsd() {
2021-04-10 00:26:46 +02:00
echo "Installing lsd"
2021-03-04 16:39:10 +01:00
mkdir hack
cd hack
wget https://github.com/ryanoasis/nerd-fonts/releases/download/v2.1.0/Hack.zip
unzip Hack.zip
cd ..
sudo cp -r hack /usr/share/fonts/
sudo chmod -R 775 /usr/share/fonts/hack
rm -r hack
wget https://github.com/Peltoche/lsd/releases/download/0.19.0/lsd_0.19.0_amd64.deb
sudo dpkg -i lsd_0.19.0_amd64.deb
sudo rm lsd_0.19.0_amd64.deb
2021-04-21 11:10:11 +02:00
# echo "alias ls='lsd'" | sudo tee -a /home/*/.bashrc > /dev/null
2021-04-14 18:35:44 +02:00
# todos
# write py script to comment line: alias="ls --color=auto"
# echo "alias ls='lsd'" | sudo tee -a /etc/bash.bashrc > /dev/null
2021-04-21 11:10:11 +02:00
echo "
alias ls='lsd'
" | sudo tee -a /etc/bash.bashrc > /dev/null
2021-03-04 16:39:10 +01:00
}