Burnchi

Burnchi

欢迎来到我的安全屋~
github
bilibili

Linux基础配置

bash

alias dcup='docker-compose up -d'
alias dcdown='docker-compose down'
alias dcps='docker ps -a'
alias dcit='docker exec -it'
alias dcstop='docker stop'
alias dcstart='docker start'
alias dcrm='docker rm'
alias l='ls'
alias port='netstat -tanpl'

常用工具

yum -y install vim curl wget lsof unzip git net-tools zsh
yum -y install epel-release(安装neofetch)
chsh -s /bin/zsh

/etc/vimrc

imap jk <ESC>
map :e! <F5>

ohmyzsh 框架

sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

手动下载 ohmyzsh

1. 克隆存储库
git clone https://github.com/ohmyzsh/ohmyzsh.git ~/.oh-my-zsh
2. 可选地,备份现有的~/.zshrc文件
cp ~/.zshrc ~/.zshrc.orig
3. 创建一个新的zsh配置文件
您可以通过复制我们为您提供的模板来创建一个新的zsh配置文件。

cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc
4. 更改默认shell
chsh -s $(which zsh)
您必须注销用户会话并重新登录才能看到此更改。

5. 初始化新的zsh配置(重新启动)
一旦您打开一个新的终端窗口,它应该加载带有Oh My Zsh配置的zsh。

zsh 插件

git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

主题

git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
vim ~/.zshrc
ZSH_THEME="powerlevel10k/powerlevel10k"
source ~/.zshrc

设置内存

wget -O box.sh https://raw.githubusercontent.com/BlueSkyXN/SKY-BOX/main/box.sh && chmod +x box.sh && clear && ./box.sh
yum -y update
yum -y install vim curl wget lsof unzip git net-tools zsh

下载 docker

sudo yum install -y yum-utils
sudo yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
sudo yum -y install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
systemctl start docker
systemctl enable docker

docker-compose

sudo wget https://github.com/docker/compose/releases/download/v2.6.1/docker-compose-linux-x86_64 -O /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
docker-compose --version
加载中...
此文章数据所有权由区块链加密技术和智能合约保障仅归创作者所有。