git bash nautilus
习惯了使用Ubuntu多年,由于项目原因,不得不使用windows电脑,没有nautilus太难受,教你如何在windows git bash 中使用初级 nautilus
如何添加
-
搜索 mingw64
-
进入mingw64\bin 创建文件: nautilus
-
编写 nautilus
#!/bin/sh
#"D:\Program Files (x86)\Notepad++\notepad++.exe" $1 &
#echo `pwd`
path=`pwd`
if [[ "$path" =~ ^/d.* ]]; then
path=${path/\/d/D:}
fi
if [[ "$path" =~ ^/c.* ]]; then
path=${path/\/c/C:}
# echo "yes"
fi
if [[ "$path" =~ ^/e.* ]]; then
path=${path/\/e/E:}
fi
if [[ "$path" =~ ^/f.* ]]; then
path=${path/\/f/F:}
fi
path=${path//\//\\}
echo $path
"C:\Windows\explorer.exe" $path
- 效果图