summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Abbott <george@gabbott.dev>2025-01-26 11:39:45 +0000
committerGeorge Abbott <george@gabbott.dev>2025-01-26 11:39:45 +0000
commit3ded86d0e493b191c747fb017d3b9d1e61eb06ef (patch)
tree206bde367fd333112c59e1a9947572593dbe0808
parent3b9a586218d360c5e5d4d8235b0e0d330d04d62a (diff)
install
-rwxr-xr-xfresh-install.sh33
1 files changed, 33 insertions, 0 deletions
diff --git a/fresh-install.sh b/fresh-install.sh
new file mode 100755
index 0000000..446e0e2
--- /dev/null
+++ b/fresh-install.sh
@@ -0,0 +1,33 @@
+#!/bin/sh
+
+# The fresh-install script generates all relevant directories.
+# It is assumed that you have run:
+# mkdir git && cd git && git clone "https://gabbott.dev/git/neodot"
+# So the neodot repo is in $HOME/git.
+# Then, fresh-install.sh will create all relevant directories and
+# perform a normal install.
+
+# Set the following to match your system:
+PRIV="sudo" # or doas, ...
+INSTALL_CMD="pacman -Syu" # or apt install, ...
+SHELL="zsh"
+
+# Create all relevant directories.
+mkdir -p $HOME/dev $HOME/www $HOME/wr $HOME/.config $HOME/.local
+mkdir -p $HOME/.local/share
+
+# Link all cfg/ entries to the relevant $HOME/.config directory
+ln -s "$HOME/git/neodot/cfg/profile" $HOME/.profile
+ln -s "$HOME/git/neodot/cfg/zprofile" $HOME/.zprofile
+
+
+ln -s "$HOME/git/neodot/cfg/fontconfig" $HOME/.config/fontconfig
+ln -s "$HOME/git/neodot/cfg/helix" $HOME/.config/helix
+ln -s "$HOME/git/neodot/cfg/nvim" $HOME/.config/nvim
+ln -s "$HOME/git/neodot/cfg/river" $HOME/.config/river
+ln -s "$HOME/git/neodot/cfg/zsh" $HOME/.config/zsh
+ln -s "$HOME/git/neodot/cfg/zsh/.zshenv" $HOME/.zshenv
+ln -s "$HOME/git/neodot/cfg/foot" $HOME/.config/foot
+
+# Change system settings.
+chsh -s /bin/$SHELL # Change shell.