scripts/new.sh
borekon e96d87d46d Añadir new.sh
Bash script to modify .bashrc according to my usual needs
2024-07-24 12:59:10 +02:00

13 lines
388 B
Bash

#!/bin/bash
GREEN='\033[1;32m'
NC='\033[0m'
sudo apt update && sudo apt install -y curl vim sudo git
cp -v .bashrc bashrc_bak
sed -i 's/both/&:erasedups/' .bashrc
sed -i 's/^#force_/force_/' .bashrc
sed -i '/ls=/s/auto/auto -h/' .bashrc
sed -i '/ll=/s/^#//' .bashrc
sed -i '/la=/s/^#//' .bashrc
sed -i '/GCC_/s/^#//' .bashrc
echo "alias ns='nslookup'" >> .bashrc
echo -e ${GREEN}Done${NC}