ref(install-script)

This commit is contained in:
thek4n 2023-11-29 16:41:03 +03:00
parent 4e4561a196
commit c336a24cae

11
install
View File

@ -3,14 +3,17 @@
set -ueo pipefail set -ueo pipefail
shopt -s nullglob shopt -s nullglob
readonly TARGET_PATH="$HOME" declare TARGET_PATH DOTFILES_ROOT SUB
readonly DOTFILES_ROOT="$(pwd)" TARGET_PATH="$HOME"
readonly SUB="$DOTFILES_ROOT/home/user" DOTFILES_ROOT="$(pwd)"
SUB="$DOTFILES_ROOT/home/user"
readonly TARGET_PATH DOTFILES_ROOT SUB
export SUB export SUB
declare -A TARGETS=( declare -r -A TARGETS=(
["bash"]=".config/bash .bashrc .profile" ["bash"]=".config/bash .bashrc .profile"
["zsh"]="%bash .config/zsh .zshrc .zprofile .zlogout .inputrc" ["zsh"]="%bash .config/zsh .zshrc .zprofile .zlogout .inputrc"
["tmux"]=".tmux.conf" ["tmux"]=".tmux.conf"