diff --git a/TARGETS.sh b/TARGETS.sh index 7c5fa3e..f817af7 100644 --- a/TARGETS.sh +++ b/TARGETS.sh @@ -1,7 +1,8 @@ readonly TARGETS="\ colors:.config/terminal-colors.d tmux:.config/tmux .tmux .config/systemd/user/tmux.service .local/bin/tmux_start_session.sh .local/bin/tmux_list_sessions.sh .local/bin/tmux_attach_session.sh .local/bin/tmux_kill_sessions.sh -zsh:.config/zsh .zshenv .inputrc .local/bin/t %colors +t:.local/bin/t +zsh:.config/zsh .zshenv .inputrc %t %colors alacritty:.config/alacritty nvim:.config/nvim .editorconfig .inputrc .editrc .local/bin/vim_askpass_helper ssh: diff --git a/install b/install index 9d866da..711f726 100755 --- a/install +++ b/install @@ -35,7 +35,7 @@ map_get_value() ( map="${1}" key="${2}" - echo "${map}" | grep "${key}:" | cut -d ':' -f2 + echo "${map}" | grep "^${key}:" | cut -d ':' -f2 ) map_get_keys() ( @@ -48,7 +48,7 @@ map_key_exists() ( map="${1}" key="${2}" - map_get_keys "${map}" | grep "${2}" 1>/dev/null + map_get_keys "${map}" | grep "^${2}" 1>/dev/null ) _link_files_in_sandbox() (