Files
dotfiles/install.sh

69 lines
1.6 KiB
Bash
Raw Normal View History

2024-06-20 00:53:35 +01:00
#!/bin/bash
2024-10-28 19:39:02 +00:00
set -eu
2024-12-08 15:49:58 +00:00
for arg in "$@"; do declare $arg='1'; done
if [ ! -n "$macos" ];
then linux=1;
else
linux="";
fi
2024-10-28 19:39:02 +00:00
2025-07-07 09:30:28 +01:00
# install asdf tool-versions
ln -s "$HOME/dotfiles/.tool-versions" "$HOME/.tool-versions"
2024-06-20 00:53:35 +01:00
# install wezterm config
2024-12-08 15:49:58 +00:00
ln -s "$HOME/dotfiles/.wezterm.lua" "$HOME/.wezterm.lua" || :
2024-06-20 00:53:35 +01:00
# install neovim config
if [ ! -d "$HOME/.config/nvim" ]; then
2024-12-08 15:49:58 +00:00
ln -s "$HOME/dotfiles/nvim" "$HOME/.config/nvim" || :
2024-06-20 00:53:35 +01:00
fi
# install starship config
2024-12-08 15:49:58 +00:00
ln -s "$HOME/dotfiles/starship.toml" "$HOME/.config/starship.toml" || :
2024-06-20 00:53:35 +01:00
2024-12-08 15:49:58 +00:00
echo $macos
if [ ! -n "$linux" ]; then
2024-10-28 19:39:02 +00:00
# install aerospace config
2024-12-08 15:49:58 +00:00
ln -s "$HOME/dotfiles/aerospace.toml" "$HOME/.aerospace.toml" || :
if [ ! -d "$HOME/.config/sketchybar" ]; then
ln -s "$HOME/dotfiles/sketchybar" "$HOME/.config/sketchybar" || :
fi
if [ ! -d "$HOME/.config/borders" ]; then
ln -s "$HOME/dotfiles/borders" "$HOME/.config/borders" || :
fi
if [ ! -d "$HOME/.config/neovide" ]; then
ln -s "$HOME/dotfiles/neovide" "$HOME/.config/neovide" || :
fi
2025-01-04 22:16:41 +00:00
if [ ! -d "$HOME/.config/ghostty" ]; then
ln -s "$HOME/dotfiles/ghostty" "$HOME/.config/ghostty" || :
fi
2024-10-28 19:39:02 +00:00
else
# install sway
if [ ! -d "$HOME/.config/sway" ]; then
2024-12-08 15:49:58 +00:00
ln -s "$HOME/dotfiles/sway" "$HOME/.config/sway" || :
2024-10-28 19:39:02 +00:00
fi
# install waybar
if [ ! -d "$HOME/.config/waybar" ]; then
2024-12-08 15:49:58 +00:00
ln -s "$HOME/dotfiles/waybar" "$HOME/.config/waybar" || :
2024-10-28 19:39:02 +00:00
fi
# install rofi
if [ ! -d "$HOME/.config/rofi" ]; then
2024-12-08 15:49:58 +00:00
ln -s "$HOME/dotfiles/rofi" "$HOME/.config/rofi" || :
2024-10-28 19:39:02 +00:00
fi
# install rofi
if [ ! -d "$HOME/.config/dunst" ]; then
2024-12-08 15:49:58 +00:00
ln -s "$HOME/dotfiles/dunst" "$HOME/.config/dunst" || :
2024-10-28 19:39:02 +00:00
fi
2024-08-30 00:19:51 +01:00
fi