You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MacOS for M1 recommends use of zsh rather than bash and selects zsh as its default shell . Happi appears to require bash shell. Will yaqc-bluesky still work without Happi activation or should I switch from zsh to bash?
The Happi.sh code follows below:
#!/bin/bash# This activates fzf-based fuzzy finding for happi searches.# This is meant to be sourced from bash.if [[ "${BASH}"=~ .*"bash" ]];then# Do nothing:elseecho"'happi' activation: only bash shell is supported. Used shell: ${BASH}"returnfi_fzf_complete_happi() {
_fzf_complete --multi --reverse --prompt="happi> " -- "$@"<<( python `which happi` search '*' --json 2>/dev/null | python -c 'import jsonimport sysitems = json.load(sys.stdin)for item in items: print(item["name"])')
}
[ -n"$BASH" ] &&complete -F _fzf_complete_happi -o default -o bashdefault happi
The text was updated successfully, but these errors were encountered:
This is a completely optional additional feature of upstream happi installing a hook for fzf, a fuzzy search cli program.
If you do not already use fzf, I certainly would not worry about it at all.
If you do use fzf, I think there should be a way to install the correct hook for zsh, and I have a strong suspicion upstream would be willing to add it.
MacOS for M1 recommends use of zsh rather than bash and selects zsh as its default shell . Happi appears to require bash shell. Will yaqc-bluesky still work without Happi activation or should I switch from zsh to bash?
The Happi.sh code follows below:
The text was updated successfully, but these errors were encountered: