sh_linux_installation_scripts/common/redhat/apps/lsd.sh

23 lines
612 B
Bash
Raw Normal View History

2021-11-24 09:41:28 +01:00
#!/bin/bash
install_lsd() {
echo "Installing lsd"
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
2021-11-24 09:55:57 +01:00
dnf install lsd -y
2021-11-24 09:41:28 +01:00
# echo "alias ls='lsd'" | sudo tee -a /home/*/.bashrc > /dev/null
# todos
# write py script to comment line: alias="ls --color=auto"
# echo "alias ls='lsd'" | sudo tee -a /etc/bash.bashrc > /dev/null
echo "
alias ls='lsd'
" | sudo tee -a /etc/bash.bashrc > /dev/null
}