快来踩爆这个蒟蒻吧|

Little_corn

园龄:1年1个月粉丝:11关注:17

tools

init.sh 这个是用在机房快速初始化 cygwin 环境的。不知道在 Linux 下可不可以使用。

#!/bin/bash
echo lsy-cmake
cat > ~/.vimrc << EOF
set nu
set autoindent
set expandtab
set tabstop=2
set shiftwidth=2
inoremap [ []<LEFT>
inoremap ' ''<LEFT>
inoremap { {}<LEFT>
inoremap " ""<LEFT>
inoremap ( ()<LEFT>
EOF
echo .vimrc-processing
cat > /usr/bin/g+ << EOF
#!/bin/bash
g++ \$1.cpp -o \$1.exe -std=c++14 -Wall -Wextra -Wl,-stack=999999999 -O2 -g
EOF
echo g+-processing
cat > /usr/bin/r+ << EOF
#!/bin/bash
g+ \$1;time ./\$1.exe
EOF
echo r+-processing
chmod a+x /usr/bin/g+
chmod a+x /usr/bin/r+
echo chmod-processing
echo lsy-Linux-init-finished
echo testing:
cat > ~/qwq.cpp << EOF
#include<bits/stdc++.h>
using namespace std;
signed main(){
ios::sync_with_stdio(0);
cin.tie(0); cout.tie(0);
cout << "lsy_init_sh qwq";
return 0;
}
EOF
echo testing g+:
g+ qwq
echo testing r+
r+ qwq
echo testing vim:
echo that is for you!
echo end

g+ 编译命令。

r+ 编译运行。

.vimrc 我的 vim 配置。

本文作者:Little_corn

本文链接:https://www.cnblogs.com/little-corn/p/18606464

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   Little_corn  阅读(8)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起