解决MSYS2下的中文乱码问题
新建/usr/bin/win:
#!/bin/bash
$@ |iconv -f gbk -t utf-8
新建/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"
alias ipconfig="/bin/win ipconfig"
alias tasklist="/bin/win tasklist"
alias net="/bin/win net"
发表于 2019-12-29 19:37:59 并被添加「」标签,阅读量: 933 。
此处评论已关闭