如题
题主日常使用 sublime text, 命令行打开文件/文件夹十分便捷。
今天需要打开 .csv 文件,想到是否可以使用 shell 快捷打开 excel?
注:曾在 .bash_profile 中写过 - chrome [site] 快捷使用 Chrome 浏览器:
function chrome(){
local site=""
if [[ -f "$(pwd)/$1" ]]; then
site="$(pwd)/$1"
elif [[ "$1" =~ "^http" ]]; then
site="$1"
else
site="http://$1"
fi
/usr/bin/open -a "/Applications/Google Chrome.app" "$site";
}
望解答~
open
就完了啊,对应的应用是系统管理的。