Move script utils into .local/opt

main
Ensar Sarajčić 2022-05-15 16:35:43 +02:00
parent 52d1d4b356
commit e3ad66f87a
9 changed files with 12 additions and 5 deletions

View File

@ -19,6 +19,7 @@ SSH_KEYS_HOME := $(HOME)/.ssh
SSH_CONFIG_FILE := $(SSH_KEYS_HOME)/config
PERSONAL_SSH_KEYS_HOME := $(SSH_KEYS_HOME)/Personal
SCRIPTS_CACHE_DIR := $(HOME)/.local/share/script_cache
SCRIPTS_UTILS_DIR := $(HOME)/.local/opt/script_utils
PROJECTS_ROOT := $(HOME)/Projects
DOCUMENTS_ROOT := $(HOME)/Documents
PICTURES_ROOT := $(HOME)/Pictures
@ -150,6 +151,12 @@ link_apps_config: check_os
@echo "Linking apps config files..."
$(call link,config,.config)
.PHONY: link_script_utils
link_script_utils: check_os
@echo "Linking script_utils files..."
@mkdir -p $(SCRIPTS_UTILS_DIR)
$(call link,script_utils,.local/opt/script_utils)
.PHONY: link_tool_versions
link_tool_versions: check_os
@echo "Linking tool-versions file for asdf"

View File

@ -2,7 +2,7 @@
set -e
. ~/.config/sh-utils/echo.sh
. ~/.local/opt/script_utils/echo.sh
usage () {
case $1 in

View File

@ -20,4 +20,4 @@ if [ -z "$OUTPUT" ]; then
OUTPUT=$filename
fi
cat ~/bin/java-helpers/java-stub.sh $FILE > $OUTPUT && chmod +x $OUTPUT
cat ~/.local/opt/script_utils/java-stub.sh $FILE > $OUTPUT && chmod +x $OUTPUT

View File

@ -2,7 +2,7 @@
set -e
. ~/.config/sh-utils/echo.sh
. ~/.local/opt/script_utils/echo.sh
usage () {
case $1 in
@ -178,7 +178,7 @@ VERSION="${POSITIONAL[2]}"
echov "Detected server: $SERVER"
echov "Detected version: $VERSION"
LSP_HOME="$HOME/.local/opt"
LSP_HOME="$HOME/.local/opt/lsp"
declare -A SUPPORTED_SERVERS=(
["java"]="jdtls"

View File

@ -1,6 +1,6 @@
#!/bin/bash
SETTINGS_DIRECTORY=$HOME/bin/settings
SETTINGS_DIRECTORY=$HOME/.local/opt/script_utils/settings
function get_settings()
{