修复 FZF_BIN 路径为相对路径
This commit is contained in:
@@ -15,7 +15,7 @@
|
|||||||
# @raycast.authorURL https://raycast.com/abearxiong
|
# @raycast.authorURL https://raycast.com/abearxiong
|
||||||
|
|
||||||
CONFIG_FILE="$HOME/.config/my-raycast/cnb-host"
|
CONFIG_FILE="$HOME/.config/my-raycast/cnb-host"
|
||||||
FZF_BIN="/usr/local/bin/fzf"
|
FZF_BIN="fzf"
|
||||||
|
|
||||||
if [[ ! -f "$CONFIG_FILE" ]]; then
|
if [[ ! -f "$CONFIG_FILE" ]]; then
|
||||||
osascript -e 'display alert "CNB Host 未配置" message "请先运行 Set CNB Host 脚本设置远程地址"'
|
osascript -e 'display alert "CNB Host 未配置" message "请先运行 Set CNB Host 脚本设置远程地址"'
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
# @raycast.author abearxiong
|
# @raycast.author abearxiong
|
||||||
# @raycast.authorURL https://raycast.com/abearxiong
|
# @raycast.authorURL https://raycast.com/abearxiong
|
||||||
|
|
||||||
FZF_BIN="/usr/local/bin/fzf"
|
FZF_BIN="fzf"
|
||||||
|
|
||||||
CMD="ssh diana 'find /root/workspace/projects /root/workspace/docker -maxdepth 1 -mindepth 1 -type d 2>/dev/null' | $FZF_BIN --prompt='VSCode Remote > ' | xargs -I{} open 'vscode://vscode-remote/ssh-remote+diana{}'"
|
CMD="ssh diana 'find /root/workspace/projects /root/workspace/docker -maxdepth 1 -mindepth 1 -type d 2>/dev/null' | $FZF_BIN --prompt='VSCode Remote > ' | xargs -I{} open 'vscode://vscode-remote/ssh-remote+diana{}'"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user