diff --git a/new.sh b/new.sh index 9860e93..c3f3282 100644 --- a/new.sh +++ b/new.sh @@ -1,14 +1,14 @@ #!/bin/bash GREEN='\033[1;32m' +YELLOW='\033[1;33m' 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 -source .bashrc + +apt update && apt install -y curl vim sudo git +wget https://f.avc.cx/bashrc.txt -O /etc/skel/.bashrc +cp /etc/skel/.bashrc /root/.bashrc +wget https://f.avc.cx/bash_aliases.txt -O /etc/skel/.bash_aliases +cp /etc/skel/.bash_aliases /root/.bash_aliases +echo -e ${YELLOW}Nuevo usuario: ${NC} +read usuario +adduser $usuario echo -e ${GREEN}Done${NC} \ No newline at end of file