functionality for charsets added
This commit is contained in:
+6
-2
@@ -7,7 +7,7 @@ set -euo pipefail
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||
BIN_DIR="${HOME}/.local/bin"
|
||||
CONFIG_DIR="${XDG_CONFIG_HOME:-$HOME/.config}/himi"
|
||||
BASH_COMPLETION_DIR="${XDG_DATA_HOME:-$HOME/.local/share/bash-completion/completions}"
|
||||
BASH_COMPLETION_DIR="${XDG_DATA_HOME:-$HOME/.local/share}/bash-completion/completions"
|
||||
ZSH_COMPLETION_DIR="${HOME}/.zfunc"
|
||||
|
||||
# Define markers for removal later
|
||||
@@ -89,8 +89,12 @@ install_config() {
|
||||
if [[ ! -f "${CONFIG_DIR}/config.sh" ]]; then
|
||||
cp "${SCRIPT_DIR}/config.sh" "${CONFIG_DIR}/"
|
||||
ok "Installed default config to $CONFIG_DIR"
|
||||
elif ! cmp -s "${SCRIPT_DIR}/config.sh" "${CONFIG_DIR}/config.sh"; then
|
||||
cp "${SCRIPT_DIR}/config.sh" "${CONFIG_DIR}/config.sh.new"
|
||||
warn "Kept your existing config; new default saved as config.sh.new"
|
||||
warn "Merge what you want, then set CONFIG_VERSION to match (himi will nag until you do)"
|
||||
else
|
||||
dim "Config already exists, skipping.\n"
|
||||
dim "Config already up to date, skipping.\n"
|
||||
fi
|
||||
else
|
||||
err "config.sh missing from installer directory"
|
||||
|
||||
Reference in New Issue
Block a user