tools
#!/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
本文作者:Little_corn
本文链接:https://www.cnblogs.com/little-corn/p/18606464
版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步