标签:contain yum ref ... bash cte .net led pre
cd ~/.gnome2/nautilus-scripts/
在该文件夹下下新建脚本文件,gedit open_nautilus_terminal
#!/bin/bashcd `dirname $NAUTILUS_SCRIPT_CURRENT_URI` exec gnome-terminal
#!/bin/bash base="`echo $NAUTILUS_SCRIPT_CURRENT_URI | cut -d‘/‘ -f3- | sed ‘s/%20/ /g‘`" if [ -z "$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS" ]; then dir=${base} else while [ ! -z "$1" -a ! -d "${base}/$1" ]; do shift done dir="${base}/$1" fi gnome-terminal --working-directory="${dir}"
nautilus-open-terminal----在当前目录下打开终端
标签:contain yum ref ... bash cte .net led pre
原文地址:http://www.cnblogs.com/shixun/p/7137248.html