mirror of
https://github.com/vhaudiquet/mymachine.git
synced 2025-12-18 03:56:04 +00:00
Fix small issues
This commit is contained in:
@@ -1,14 +1,7 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
disable_unwanted_extensions() {
|
||||
# Disable default Ubuntu gnome extensions
|
||||
sudo -u ${USERNAME} gnome-extensions disable ding@rastersoft.com # Desktop Icons
|
||||
}
|
||||
|
||||
WHEEL_GROUP="sudo"
|
||||
|
||||
disable_unwanted_extensions
|
||||
|
||||
# Enable docker IPv4 forwarding, to allow LXD to work along it :)
|
||||
echo "net.ipv4.conf.all.forwarding=1" > /etc/sysctl.d/99-forwarding.conf
|
||||
sysctl net.ipv4.conf.all.forwarding=1 >/dev/null 2>&1
|
||||
|
||||
@@ -207,6 +207,11 @@ extra_init() {
|
||||
fi
|
||||
}
|
||||
|
||||
extra_finish() {
|
||||
echo -ne ""
|
||||
disable_unwanted_extensions() {
|
||||
# Disable default Ubuntu gnome extensions
|
||||
sudo -u ${USERNAME} gnome-extensions disable ding@rastersoft.com # Desktop Icons
|
||||
}
|
||||
|
||||
extra_finish() {
|
||||
disable_unwanted_extensions
|
||||
}
|
||||
|
||||
@@ -6,13 +6,15 @@ install_dotfile_ifnot() {
|
||||
}
|
||||
|
||||
echo "Installing dotfiles..."
|
||||
# cp -r --update=none ${script_dir}/dotfiles/. /home/${USERNAME}/
|
||||
sudo -u ${USERNAME} mkdir -p /home/${USERNAME}/.config/git
|
||||
cat ${script_dir}/dotfiles/.config/git/config | envsubst '$GIT_USER $EMAIL' >/home/${USERNAME}/.config/git/config
|
||||
chown ${USERNAME}:${USERNAME} /home/${USERNAME}/.config/git/config
|
||||
|
||||
# Install bashrc if not mymachine-installed
|
||||
if ! [[ "$(head -n 1 /home/${USERNAME}/.bashrc)" = "# mymachine" ]]; then
|
||||
sudo -u ${USERNAME} cp "${script_dir}/dotfiles/.bashrc" "/home/${USERNAME}/.bashrc"
|
||||
fi
|
||||
install_dotfile_ifnot .config/prompt.sh
|
||||
|
||||
# Install code settings depending on which code is installed
|
||||
CODE_NAME="Code - OSS"
|
||||
|
||||
Reference in New Issue
Block a user