Compare commits
3 Commits
f6943b7f9a
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| bf705fa7d9 | |||
| 83760292cb | |||
| c10c97814e |
@@ -15,7 +15,7 @@
|
||||
# @raycast.authorURL https://raycast.com/abearxiong
|
||||
|
||||
CONFIG_FILE="$HOME/.config/my-raycast/cnb-host"
|
||||
FZF_BIN="/usr/local/bin/fzf"
|
||||
FZF_BIN="fzf"
|
||||
|
||||
if [[ ! -f "$CONFIG_FILE" ]]; then
|
||||
osascript -e 'display alert "CNB Host 未配置" message "请先运行 Set CNB Host 脚本设置远程地址"'
|
||||
@@ -29,7 +29,7 @@ if [[ -z "$CNB_HOST" ]]; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
CMD="ssh '$CNB_HOST' 'find /workspace/projects /workspace/docker -maxdepth 1 -mindepth 1 -type d 2>/dev/null' | $FZF_BIN --prompt='CNB Remote > ' | xargs -I{} open 'vscode://vscode-remote/ssh-remote+${CNB_HOST}{}'"
|
||||
CMD="ssh '$CNB_HOST' 'find /workspace/projects /workspace/docker -maxdepth 1 -type d 2>/dev/null' | $FZF_BIN --prompt='CNB Remote > ' | xargs -I{} open 'vscode://vscode-remote/ssh-remote+${CNB_HOST}{}'"
|
||||
|
||||
osascript <<OSASCRIPT
|
||||
tell application "iTerm"
|
||||
|
||||
@@ -14,9 +14,9 @@
|
||||
# @raycast.author 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 -type d 2>/dev/null' | $FZF_BIN --prompt='VSCode Remote > ' | xargs -I{} open 'vscode://vscode-remote/ssh-remote+diana{}'"
|
||||
|
||||
osascript <<OSASCRIPT
|
||||
tell application "iTerm"
|
||||
|
||||
Reference in New Issue
Block a user