fix(zshrc): replace custom _exists function with built-in command -v to improve readability and maintainability

This commit is contained in:
David Ibia
2025-02-12 20:57:35 +01:00
parent 98cf68ae09
commit 9fbe8378db

7
.zshrc
View File

@@ -184,7 +184,12 @@ if [ -d "$HOME/.local/bin" ] ; then
PATH="$HOME/.local/bin:$PATH" PATH="$HOME/.local/bin:$PATH"
fi fi
# TMUX Setup Start _exists() {
command -v "$1" >/dev/null 2>&1
}
# TMUX + FZF Setup Start
#
function tml() { function tml() {
sessions=$(tmux ls | sed -E 's/:.*$//') sessions=$(tmux ls | sed -E 's/:.*$//')