add generic_func
This commit is contained in:
@@ -3,6 +3,7 @@
|
||||
. gmt_shell_functions.sh
|
||||
# 包含dispOption脚本
|
||||
. dispOptions
|
||||
. generic_func
|
||||
# 定义一个函数 执行输入的语句或者将其显示在屏幕上
|
||||
RunOrEcho()
|
||||
{
|
||||
@@ -299,9 +300,9 @@ else
|
||||
|
||||
# 在终端显示图像 此命令需要imgcat.sh脚本和iTerm终端
|
||||
#imgcat $jpgfile
|
||||
# 打开图片文件 此命令使用MacOS终端open命令
|
||||
# 打开图片文件 此命令使用MacOS终端open命令 和Linux下的xdg-open命令
|
||||
if [[ ${run_command} == 1 ]]; then
|
||||
open $jpgfile
|
||||
view_file ${jpgfile}
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
Reference in New Issue
Block a user