theniceboy/zsh/functions/se.zsh
2025-12-02 23:39:25 -08:00

17 lines
450 B
Bash

se() {
if ! typeset -f _op_run >/dev/null; then
local src=${funcfiletrace[1]%:*}
local dir=${src:h}
local common="$dir/_op_common.zsh"
if [ ! -f "$common" ]; then
common="${XDG_CONFIG_HOME:-$HOME/.config}/zsh/functions/_op_common.zsh"
fi
if [ ! -f "$common" ]; then
print -u2 "se: missing _op_common.zsh at $common"
return 1
fi
source "$common" || return 1
fi
_op_run se --agent Search "$@"
}