feat: Adding symlinks

This commit is contained in:
Jake Pullen
2025-05-29 09:22:36 +01:00
parent 0e2e72ded7
commit 68654c646a
3 changed files with 71 additions and 3 deletions
+48 -3
View File
@@ -17,6 +17,8 @@ package_list=(
"zsh-completions"
"ttf-font-awesome"
"nerd-fonts"
"btop"
"firefox"
)
# Create a string of packages
@@ -30,8 +32,51 @@ sudo pacman -S --needed --noconfirm $package_string
curl -LsSf https://astral.sh/uv/install.sh | sh
## Linutil by CTT
# curl -fsSL https://christitus.com/linux | sh
curl -fsSL https://christitus.com/linux | sh
## make zsh the default shell
chsh /usr/bin/zsh
folders_to_link=(
"alacritty"
"git"
"hypr"
"waybar"
"wofi"
"zsh"
)
# Loop through the folder list
for folder in "${folders_to_link[@]}"; do
# Construct the full path to the .config folder
config_path="$HOME/dotfiles/$folder"
# Construct the full path to the target folder
target_path="$HOME/.config/$folder"
# Check if the target folder exists
if [ -d "$target_path" ]; then
echo "Warning: Target directory '$target_path' already exists. Skipping link creation."
else
# Create a soft link
ln -s "$config_path" "$target_path"
if [ $? -eq 0 ]; then
echo "Successfully created soft link: $target_path -> $config_path"
else
echo "Error: Failed to create soft link: $target_path"
fi
fi
done
if [ -f "$HOME/.gitconfig" ]; then
echo gitconfig already linked, skipping
else
ln -s $HOME/dotfiles/git/gitconfig $HOME/.gitconfig
echo linked gitconfig
fi
if [ -f "/etc/zsh/zshenv" ]; then
echo zshenv already exists, skipping
else
ln -s $HOME/dotfiles/zshenv /etc/zsh/zshenv
fi
echo Make sure you change shell with chsh
+22
View File
@@ -989,3 +989,25 @@ sudo pacman -S ttf-font-awesome waybar ttf-jetbrains-mono-nerd ttf-nerd-fonts-sy
: 1748501189:0;nvim sddm.conf
: 1748501216:0;rm sddm.conf
: 1748501223:0;ga .
: 1748501226:0;gc
: 1748501267:0;gp
: 1748501283:0;nvim set_up_dev/install_me.sh
: 1748501493:0;cd /etc/zsh
: 1748501494:0;ls
: 1748501507:0;nvim zshenv
: 1748501596:0;cd ~/dotfiles
: 1748501598:0;ls
: 1748501637:0;ln -s ~/dotfiles/wofi ~/.config/wofi
: 1748501739:0;ollama serve
: 1748501760:0;ollama run gemma3
: 1748501773:0;ollama help
: 1748502174:0;.set_up_dev/install_me.sh
: 1748502183:0;./set_up_dev/install_me.sh
: 1748502209:0;nvim set_up_dev/install_me.sh
: 1748502486:0;./set_up_dev/install_me.sh
: 1748502523:0;nvim set_up_dev/install_me.sh
: 1748502573:0;./set_up_dev/install_me.sh
: 1748502824:0;touch zshenv
: 1748502833:0;nvim zshenv
: 1748503018:0;./set_up_dev/install_me.sh
: 1748506954:0;ga .
+1
View File
@@ -0,0 +1 @@
export ZDOTDIR="/home/devin/.config/zsh"