Minor modification to invocations

This commit is contained in:
Lockszmith (@Kateryna) 2025-03-16 00:54:17 -04:00
parent f08c0bc4e0
commit b504e354a1
1 changed files with 2 additions and 2 deletions

View File

@ -346,12 +346,12 @@ case "${1}" in
ln -s $2 "$(cd -- "${SCRIPT_DIR}" && pwd)/${BASE_NAME}" "${3:-$HOME/.local/bin/}"
;;
editme)
${VISUAL:-${EDITOR:-vi}} "$(readlink -f "$0")"
exec ${VISUAL:-${EDITOR:-vi}} "$(readlink -f "$0")"
;;
git)
GIT_ARGS="$( printf '"%s" ' "${@:2}" )"
[ "$GIT_ARGS" != '"update" ' ] || GIT_ARGS="pull --rebase --autostash"
exec sh -c 'cd user-config && git '"${GIT_ARGS}"'; exit $?'
exec sh -c "cd user-config && git ${GIT_ARGS}; exit \$?"
;;
_load)
echo "alias ${BASE_NAME}cd='cd \"$SCRIPT_DIR/..\"'"