Minor modification to invocations
This commit is contained in:
parent
f08c0bc4e0
commit
b504e354a1
|
@ -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/..\"'"
|
||||
|
|
Loading…
Reference in New Issue