My Linux env build script
default APT packages
1 2 3 4
| sudo apt-get update # filelight : 磁盘空间可视化 sudo apt-get install vim gedit zsh make cmake gcc g++ git curl flex bison ssh net-tools xclip wget tmux filelight ninja-build python3 python3-pip libpixman-1-dev qemu-utils proxychains
|
zsh env build
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
| git clone https://gitee.com/snowtafir/ohmyzsh.git sh -c ./ohmyzsh/tools/install.sh git clone https://gitee.com/spring297/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions git clone https://gitee.com/snowtafir/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting git clone https://github.com/jeffreytse/zsh-vi-mode $ZSH_CUSTOM/plugins/zsh-vi-mode git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k sed -i '/^ZSH_THEME/c\ZSH_THEME="powerlevel10k/powerlevel10k"' ~/.zshrc cp ~/.zshrc ~/.zshrc.bak sed -i '/plugins=(git)/c\ plugins=(\ git\ zsh-autosuggestions\ zsh-syntax-highlighting\ z\ )' ~/.zshrc source ~/.zshrc
|
tmux env build
1 2 3 4 5 6 7 8 9 10 11 12 13
| sudo apt-get install tmux cd ~ git clone https://gitee.com/JinfengX/oh-my-tmux.git mv oh-my-tmux .tmux ln -s -f .tmux/.tmux.conf cp .tmux/.tmux.conf.local . # -- user setting ------------------------------------------------------- echo -e "set -g mouse on \n #setw -g mode-keys vi \n bind -T copy-mode-vi v send -X begin-selection \n bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel \n bind P paste-buffer \n bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel \n" >> ~/.tmux.conf
|