Skip to content

Commit

Permalink
Move example configs to example/ to avoid conflict when pulling
Browse files Browse the repository at this point in the history
  • Loading branch information
lebr0nli committed Nov 29, 2023
1 parent 44d0857 commit a7d3a97
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
__pycache__/*
.venv/*
.gdb_history
.gdb_history
gdbinit-gep
geprc.py
!example/gdbinit-gep
!example/geprc.py
File renamed without changes.
File renamed without changes.
11 changes: 3 additions & 8 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,11 @@ PYTHON=$VENV_PATH/bin/python
"$PYTHON" -m pip install -U pip
"$VENV_PATH/bin/pip" install --no-cache-dir -U prompt_toolkit

if [ -f ~/.gdbinit ]; then
# backup gdbinit if exists
cp ~/.gdbinit ~/.gdbinit.old
else
# create gdbinit if not exists
touch ~/.gdbinit
fi
# copy example config to INSTALL_PATH if not exists
cp -n "$INSTALL_PATH"/example/* "$INSTALL_PATH"

# append gep to gdbinit
if ! grep -q gep ~/.gdbinit; then
if ! grep -q '^[^#]*source.*/gdbinit-gep.py' ~/.gdbinit; then
printf '\nsource%s\n' "$GDBINIT_GEP_PY" >> ~/.gdbinit
fi

Expand Down
2 changes: 1 addition & 1 deletion lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ set -o xtrace

LINT_PYTHON_FILES=(
"gdbinit-gep.py"
"geprc.py"
"example/geprc.py"
)
LINT_SHELL_FILES=(
"install.sh"
Expand Down

0 comments on commit a7d3a97

Please sign in to comment.