mirror of
https://github.imc.re/void-land/hyprland-void-dots
synced 2025-04-11 15:46:55 +02:00
refactor: stow links
This commit is contained in:
parent
dec955491e
commit
d41b22477b
1 changed files with 5 additions and 7 deletions
12
stow.sh
12
stow.sh
|
@ -47,7 +47,7 @@ create_link() {
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ln -sfn "$source" "$target"
|
ln -sfn "$source" "$target"
|
||||||
echo "Created symlink: $source ===> $target"
|
echo "$source ===> $target"
|
||||||
}
|
}
|
||||||
|
|
||||||
create_links() {
|
create_links() {
|
||||||
|
@ -103,16 +103,13 @@ stow() {
|
||||||
create_target_dir
|
create_target_dir
|
||||||
|
|
||||||
create_link $FISH_DIR ~/.config/fish
|
create_link $FISH_DIR ~/.config/fish
|
||||||
log "Fish Shell stowed successfully!"
|
log "Fish dotfiles stowed successfully!"
|
||||||
|
|
||||||
create_links $LINUX_DOTFILES_DIR ~/.config
|
create_links $LINUX_DOTFILES_DIR ~/.config
|
||||||
log "Dotfiles stowed successfully!"
|
log "Base dotfiles stowed successfully!"
|
||||||
|
|
||||||
create_links $HYPRLAND_DIR ~/.config
|
create_links $HYPRLAND_DIR ~/.config
|
||||||
log "Hyprland stowed successfully!"
|
log "Hyprland dotfiles stowed successfully!"
|
||||||
|
|
||||||
create_links $SHORTCUTS_DIR ~/.local/share/applications
|
|
||||||
log "Shortcuts stowed successfully!"
|
|
||||||
|
|
||||||
create_links $UTILS_DIR ~
|
create_links $UTILS_DIR ~
|
||||||
log "Utilities stowed successfully!"
|
log "Utilities stowed successfully!"
|
||||||
|
@ -130,6 +127,7 @@ unstow() {
|
||||||
while getopts "ush" opt; do
|
while getopts "ush" opt; do
|
||||||
case $opt in
|
case $opt in
|
||||||
s)
|
s)
|
||||||
|
clear
|
||||||
stow
|
stow
|
||||||
;;
|
;;
|
||||||
u)
|
u)
|
||||||
|
|
Loading…
Add table
Reference in a new issue