Skip to content

Commit

Permalink
Merge pull request #258 from joclement/next
Browse files Browse the repository at this point in the history
next
  • Loading branch information
joclement authored Dec 31, 2024
2 parents e2992d8 + c545217 commit 6e8d9d9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 22 deletions.
27 changes: 11 additions & 16 deletions env.sh
Original file line number Diff line number Diff line change
@@ -1,30 +1,25 @@
# NOTE: only add the directory if it is nowhere in PATH
__path_append() {
__path_append_if_dir_exists() {
if [ -d "$1" ] && [[ ":$PATH:" != *":$1:"* ]]; then
PATH="$PATH:$1"
fi
}

if [ -d "$HOME/bin" ]; then
__path_append "$HOME"/bin
fi
__path_append_if_dir_exists "$HOME"/bin

if [ -d "$HOME/.local/bin" ]; then
__path_append "$HOME"/.local/bin
fi
__path_append_if_dir_exists "$HOME"/.local/bin

POETRY_HOME="$HOME/.poetry/bin"
if [ -d "$POETRY_HOME" ]; then
__path_append "$POETRY_HOME"
fi
__path_append_if_dir_exists "$HOME"/.poetry/bin

if [ -f "$HOME/.cargo/env" ]; then
__path_append_if_dir_exists "$HOME"/.fzf/bin

unset -f __path_append_if_dir_exists

CARGO_ENV="$HOME"/.cargo/env
if [ -f "$CARGO_ENV" ]; then
# shellcheck source=/dev/null
source "$HOME"/.cargo/env
source "$CARGO_ENV"
fi

unset -f __path_append

# ---------------------------------------------------------------------

export VISUAL=vim
Expand Down
1 change: 1 addition & 0 deletions gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
[pull]
rebase = true
prune = true
tags = true
[push]
default = simple
followTags = true
Expand Down
5 changes: 0 additions & 5 deletions renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,6 @@
"matchPackageNames": [
"/.*/"
]
},
{
"matchPackageNames": ["/fzf.vim/"],
"description": "The new version requires fzf version 0.57 or higher",
"enabled": false
}
]
}
3 changes: 2 additions & 1 deletion ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ ignore = [
"ANN204",
"COM812",
"CPY001",
"E501",
"D103",
"D211",
"D213",
"E501",
"FIX001",
"PLR2004",
"PLW2901",
"PTH123",
"RET504",
"TD001",
"TD003",
]
Expand Down

0 comments on commit 6e8d9d9

Please sign in to comment.