修复 open-cnb-remote-vscode.sh 和 open-vscode-remote.sh 中的 find 命令,移除多余的 -mindepth 1 参数
This commit is contained in:
@@ -29,7 +29,7 @@ if [[ -z "$CNB_HOST" ]]; then
|
|||||||
exit 1
|
exit 1
|
||||||
fi
|
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
|
osascript <<OSASCRIPT
|
||||||
tell application "iTerm"
|
tell application "iTerm"
|
||||||
|
|||||||
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
FZF_BIN="/usr/local/bin/fzf"
|
FZF_BIN="/usr/local/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
|
osascript <<OSASCRIPT
|
||||||
tell application "iTerm"
|
tell application "iTerm"
|
||||||
|
|||||||
Reference in New Issue
Block a user