MSYS2配置

在/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'"


转载于:https://my.oschina.net/patrickwangqy/blog/615315

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值