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