vim /bin/VIM
#!/bin/bash
echo "$1" |grep '\.conf$' >/dev/null && cp -rf $1 $1.bak
vim $1
然后再alias vim=VIM一下就行了
转载于:https://blog.51cto.com/q8886888/1174073
vim /bin/VIM
#!/bin/bash
echo "$1" |grep '\.conf$' >/dev/null && cp -rf $1 $1.bak
vim $1
然后再alias vim=VIM一下就行了
转载于:https://blog.51cto.com/q8886888/1174073