Browse Source

Prettify

pull/357/head
Xavier Petit 5 years ago
parent
commit
f41c74d6f3
No known key found for this signature in database
GPG Key ID: CA3F2B17E25ABD26
  1. 2
      scripts/clean.sh
  2. 4
      scripts/go.sh
  3. 2
      scripts/ubuntu_tweaks.sh
  4. 4
      scripts/vscode.sh

2
scripts/clean.sh

@ -52,4 +52,4 @@ rm -rf /home/student/.cache
rm -rf /home/student/.sudo_as_admin_successful /home/student/.bash_logout
rm -rf /tmp/*
rm -rf /tmp/.* || true
rm -rf /tmp/.* ||:

4
scripts/go.sh

@ -9,7 +9,7 @@ cd $script_dir
apt-get -y install golang
# Set-up all users
for DIR in $(ls -1d /root /home/* 2>/dev/null || true)
for DIR in $(ls -1d /root /home/* 2>/dev/null ||:)
do
# Add convenient aliases & behaviors
cat <<-'EOF'>> $DIR/.bashrc
@ -21,5 +21,5 @@ do
# Fix rights
USR=$(echo "$DIR" | rev | cut -d/ -f1 | rev)
chown -R $USR:$USR $DIR || true
chown -R $USR:$USR $DIR ||:
done

2
scripts/ubuntu_tweaks.sh

@ -35,7 +35,7 @@ update-initramfs -u
update-grub
# Disable swapfile
swapoff /swapfile || true
swapoff /swapfile ||:
rm -f /swapfile
sed -i '/swapfile/d' /etc/fstab

4
scripts/vscode.sh

@ -12,7 +12,7 @@ dpkg -i codium_1.40.2-1574798581_amd64.deb
ln -s /usr/bin/codium /usr/local/bin/code
# Set-up all users
for DIR in $(ls -1d /home/* 2>/dev/null || true)
for DIR in $(ls -1d /home/* 2>/dev/null ||:)
do
# Disable most of the telemetry and auto-updates
mkdir -p $DIR/.config/VSCodium/User
@ -32,5 +32,5 @@ do
# Fix rights
USR=$(echo "$DIR" | rev | cut -d/ -f1 | rev)
chown -R $USR:$USR $DIR || true
chown -R $USR:$USR $DIR ||:
done

Loading…
Cancel
Save