fix: changes

This commit is contained in:
pika 2025-03-17 12:33:59 +01:00
parent 03efc49158
commit 757efc3ec6
2 changed files with 6 additions and 3 deletions

View file

@ -1,3 +1,8 @@
# ─< Check if the given command exists silently >─────────────────────────────────────────
command_exists() {
command -v "$@" >/dev/null 2>&1
}
# ─< paths >──────────────────────────────────────────────────────────────────────────────
if [ -d "$HOME/.local/bin" ]; then
export PATH="$HOME/.local/bin:$PATH"
@ -6,7 +11,7 @@ if [ -d "$HOME/.local/bin" ]; then
fi
fi
if command -v nvim 2 >/dev/null &>1; then
if command_exists nvim; then
export EDITOR="nvim"
else
# ─< linux binary via script installation >───────────────────────────────────────────────

2
.zshrc
View file

@ -1,5 +1,3 @@
[[ -e "$HOME/.zshdef" ]] && . "$HOME/.zshdef" # <-- Defaults like echos and colors
# ─< Check if the given command exists silently >─────────────────────────────────────────
command_exists() {
command -v "$@" >/dev/null 2>&1