LYNX

Links

Tags

Categories

Linux从0开始配置

git

  1. 全局设置
git config --global user.name "Lynx" # your student ID and name
git config --global user.email "1197225628@qq.com" # your email
git config --global core.editor vim # your favorite editor
git config --global color.ui true

powerline

  1. python安装pip

菜鸟教程

curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
sudo python get-pip.py
# or
sudo apt-get install python3-pip
  1. pip安装powerline

详细

pip install powerline-status
pip3 install powerline-status
  1. pip安装powerline-gitstatus

github

sudo apt install powerline-gitstatus
# or
pip install powerline-gitstatus
pip3 install powerline-gitstatus
  1. 复制配置文件

    git clone https://github.com/aaaatrox/powerline.git
    mv powerline .config/
  2. 安装powerline字体

详细

git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
  1. 修改终端字体设置

  2. 找不到powerline-config

export PATH=$PATH:/home/lynx/.local/bin/
# export PATH=$pathtopowerline-config:$PATH

vim

  1. 转移.vimrc,修改powerline相对路径

安装支持python的vim(查看vim --version),详细:

  • macOS
brew install vim --with-python
  • Linux
sudo apt install vim-gnome

如果需要使用系统剪切板功能,必须安装vim-gnome

  1. 复制插件(branch clean)
    git clone https://github.com/aaaatrox/my_vim.git
    mv my_vim .vim
  • 注意:

    • ubuntu默认只装了vi而不是vim
    • 如果出现无法写入.vim/view的问题,直接把文件夹删掉
  • 插件包含:推荐插件

  1. 修改rtp

zsh

  1. 安装zsh

  2. wget安装oh-my-zsh

    sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  3. 转移.zshrc,修改powerline相对路径

  4. 安装zsh-syntax-highlighting

    详细

    • macOS
    brew install zsh-syntax-highlighting

    然后将source /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh加到.zshrc

    • oh-my-zsh
     git clone https://github.com/zsh-users/zsh-syntax-highlighting.git
    mv zsh-syntax-highlighting ~/zsh-syntax-highlighting

    然后将source $HOME/zsh-syntax-highlighting/zsh-syntax-highlighting.git加到.zshrc

Tags

zsh
vim
git
pip

Categories

1 / 1