mirror of
https://github.com/theniceboy/.config.git
synced 2025-12-26 14:44:57 +08:00
17 lines
450 B
Bash
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 "$@"
|
|
}
|