mirror of
https://github.com/boxpositron/absolute-dotfiles.git
synced 2026-02-28 11:40:37 +00:00
fix(zshrc): replace custom _exists function with built-in command -v to improve readability and maintainability
This commit is contained in:
7
.zshrc
7
.zshrc
@@ -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/:.*$//')
|
||||||
|
|||||||
Reference in New Issue
Block a user