Move post-setup scripts to their own directory

master
Jordan Atwood 2 years ago
parent 5d611a4cf7
commit a4c0d4826d
Signed by: nightfirecat
GPG Key ID: 615A619C2D73A6DF
  1. 0
      post-setup/diff-highlight.sh
  2. 0
      post-setup/gpg.sh
  3. 2
      post-setup/ssh.sh
  4. 2
      post-setup/vscode.sh
  5. 2
      setup.sh

@ -8,7 +8,7 @@ fi
# set 0600 permissions on config file # set 0600 permissions on config file
# (setting permissions on a symlink does nothing; see chmod(1)) # (setting permissions on a symlink does nothing; see chmod(1))
chmod 0600 "$( dirname "$(readlink -f "${BASH_SOURCE[0]}")" )/src/.ssh/config" chmod 0600 "${DIR}/src/.ssh/config"
# prompt to create key if none exists # prompt to create key if none exists
if [[ "$(find ~/.ssh -maxdepth 1 -type f -name '*.pub' | wc -l)" == 0 ]]; then if [[ "$(find ~/.ssh -maxdepth 1 -type f -name '*.pub' | wc -l)" == 0 ]]; then

@ -45,7 +45,7 @@ done < "$DIR"/vscode/extensions
# backup settings/keybinds files, then create symlinks # backup settings/keybinds files, then create symlinks
# TODO: do the same for snippets dir files # TODO: do the same for snippets dir files
for file in settings.json keybindings.json; do for file in settings.json keybindings.json; do
source="$( dirname "$(readlink -f "${BASH_SOURCE[0]}")" )/vscode/$file" source="${DIR}/vscode/$file"
target="$VSCODE_CONFIG_PATH/$file" target="$VSCODE_CONFIG_PATH/$file"
if [[ -h "$target" ]] && [[ "$source" == "$(readlink -f "$target")" ]]; then if [[ -h "$target" ]] && [[ "$source" == "$(readlink -f "$target")" ]]; then
echo "Skipping '$source' -> '$target' link as it is already linked" echo "Skipping '$source' -> '$target' link as it is already linked"

@ -75,5 +75,5 @@ elif [ $remove -eq 0 ]; then
fi fi
for script in "${POST_SETUP_SCRIPTS[@]}"; do for script in "${POST_SETUP_SCRIPTS[@]}"; do
source "${DIR}/${script}" source "${DIR}/post-setup/${script}"
done done

Loading…
Cancel
Save