fix: changes
This commit is contained in:
parent
03efc49158
commit
757efc3ec6
2 changed files with 6 additions and 3 deletions
7
.zshenv
7
.zshenv
|
@ -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
2
.zshrc
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue