MSYS2配置

原创
2016/02/15 23:13
阅读数 174

在/etc/profile.d里的alias.sh文件中添加一下内容(没有这个文件可以新建)

alias ls="/bin/ls --color=tty --show-control-chars"

alias grep="/bin/grep --color"

alias ll="/bin/ls --color=tty --show-control-chars -l" 

alias ping="/bin/win ping"

alias netstat="/bin/win netstat"

alias nslookup="/bin/win nslookup"


在资源管理器右键添加MSYS2 here

以下是reg文件内容

Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\Directory\Background\shell\open_msys2]

@="Open MSYS2 here"


[HKEY_CLASSES_ROOT\Directory\Background\shell\open_msys2\command]

@="d:\\msys32\\usr\\bin\\mintty.exe /bin/bash -lc 'cd \"$(cygpath \"%V\")\"; export CHERE_INVOKING=1; exec bash --login -i'"


[HKEY_CLASSES_ROOT\Folder\shell\open_msys2]

@="Open MSYS2 here"


[HKEY_CLASSES_ROOT\Folder\shell\open_msys2\command]

@="d:\\msys32\\usr\\bin\\mintty.exe /bin/bash -lc 'cd \"$(cygpath \"%V\")\"; export CHERE_INVOKING=1; exec bash --login -i'"


展开阅读全文
加载中
点击引领话题📣 发布并加入讨论🔥
0 评论
1 收藏
1
分享
返回顶部
顶部