From 9fbe8378db2a738356890b3922acf2ade58c5aeb Mon Sep 17 00:00:00 2001 From: David Ibia Date: Wed, 12 Feb 2025 20:57:35 +0100 Subject: [PATCH] fix(zshrc): replace custom _exists function with built-in command -v to improve readability and maintainability --- .zshrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.zshrc b/.zshrc index b6865d1..4037630 100644 --- a/.zshrc +++ b/.zshrc @@ -184,7 +184,12 @@ if [ -d "$HOME/.local/bin" ] ; then PATH="$HOME/.local/bin:$PATH" fi -# TMUX Setup Start +_exists() { + command -v "$1" >/dev/null 2>&1 +} + +# TMUX + FZF Setup Start +# function tml() { sessions=$(tmux ls | sed -E 's/:.*$//')