summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEkaitz Zarraga <ekaitz@elenq.tech>2022-04-10 13:03:10 +0200
committerEkaitz Zarraga <ekaitz@elenq.tech>2022-04-10 13:03:10 +0200
commit7d99aa95fe9873261334d2dc952b30757bd1ba4f (patch)
tree22094dd827928696816dd10db941ea6ba7dba567
parentcb1aab1228623fea2bddff7934ce4afb892e66c6 (diff)
Easier install script
-rw-r--r--install.sh18
1 files changed, 10 insertions, 8 deletions
diff --git a/install.sh b/install.sh
index aa37dc1..175e9aa 100644
--- a/install.sh
+++ b/install.sh
@@ -1,28 +1,30 @@
#!/bin/bash
+echo ${XDG_CONFIG_HOME:=$HOME/.config}
+
# Link at home folder
-stow --dotfiles -Rt ~ bash tmux git
+stow --dotfiles -Rt$HOME bash tmux git
# Link at XDG_CONFIG_HOME if set, if not to $HOME/.config (they should be the same)
-stow -Rt ${XDG_CONFIG_HOME:=$HOME/.config} nvim
+stow -Rt $XDG_CONFIG_HOME nvim
# konsole colors
# stow -Rt "${XDG_CONFIG_HOME:=$HOME/.config}/konsole" konsole
# kitty
-stow -Rt ${XDG_CONFIG_HOME:=$HOME/.config} kitty
+stow -Rt $XDG_CONFIG_HOME kitty
# Guix channels
-stow -Rt "${XDG_CONFIG_HOME:=$HOME/.config}/guix" guix
+stow -Rt "$XDG_CONFIG_HOME/guix" guix
# i3
-stow -Rt ${XDG_CONFIG_HOME:=$HOME/.config} i3
-stow -Rt ${XDG_CONFIG_HOME:=$HOME/.config} i3status
+stow -Rt $XDG_CONFIG_HOME i3
+stow -Rt $XDG_CONFIG_HOME i3status
# Plasma session environment variables
#stow -Rt "${XDG_CONFIG_HOME:=$HOME/.config}/plasma-workspace/env" plasma-env
# Shepherd user services
-stow -Rt ${XDG_CONFIG_HOME:=$HOME/.config} shepherd
+stow -Rt $XDG_CONFIG_HOME shepherd
# Redshift
-stow -Rt ${XDG_CONFIG_HOME:=$HOME/.config} redshift
+stow -Rt $XDG_CONFIG_HOME redshift