terminal-here

terminal-here

Gnome-nautilus-scripts 直接在Gnome-Nautilus 右鍵開啟 Terminal 自己寫的程式碼如下(夠簡單吧) p=\$NAUTILUS_SCRIPT_CURRENT_URI p=`echo \$p | sed 's/file:\/\///g'` if [ \${#NAUTILUS_SCRIPT_SELECTED_FILE_PATHS} -gt 0 ]; then p=\$NAUTILUS_SCRIPT_SELECTED_FILE_PATHS fi gnome-terminal --working-directory=\$p 在 \$HOME/.gnome2/nautilus-scripts 新增一個檔案 terminal-here.sh 把程式碼貼上 在加上可執行 chmod u+x \~/.gnome2/nautilus-scripts/terminal-here.sh 大功告成 更多script 可以在 G-script 取得 http://g-scripts.sourceforge.net/ Gnome-說明 To install a script, simply copy the script to the script folder and give it the user executable permission. Nautilus-scripts環境變數 NAUTILUS_SCRIPT_SELECTED_FILE_PATHS newline-delimited paths for selected files (only if local) ex:/home/user/ NAUTILUS_SCRIPT_SELECTED_URIS newline-delimited URIs for selected files ex: file:///home/user/test.txt NAUTILUS_SCRIPT_CURRENT_URI URI for current location ex: file:///home/user/ NAUTILUS_SCRIPT_WINDOW_GEOMETRY position and size of current window ex: not try?!

convert from Thomas blog post id 37 old convert log: ./120800/tag%3E2006%2012%20linux)

@2006 @12 @linux

Comments