Git Product home page Git Product logo

dotfiles's Introduction

wsl 相关配置


安装wsl

直接在应用商店索搜Ubuntu即可

安装wsl-terminal

wsl-terminal用于 Windows Subsystem for Linux (WSL) 的终端模拟器,基于 minttywslbridge

下载wsl-terminal,解压即可

配置wsl-terminal (1)

在wsl-terminal安装目录下的 etc/wsl-terminal.conf 文件,修改下列变量:

	[config]
	title="        "
	shell=zsh
	use_tmux=1 ;使用tmux

安装zsh

oh my zsh官网

sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"

配置wsl

克隆我的dotfile

git clone https://github.com/fortystory/dotfiles

执行

./move_file.sh

安装power-line字体

git clone https://github.com/powerline/fonts.git --depth=1

在windows进入fonts目录,执行install.ps1文件. wsl中下载执行install.sh

安装python

./configure --prefix=${HOME} --enable-shared --enable-loadable-sqlite-extensions

或者

#安装pip
#在https://pypi.org/project/pip/#files下载
wget https://files.pythonhosted.org/packages/ae/e8/2340d46ecadb1692a1e455f13f75e596d4eab3d11a57446f08259dee8f02/pip-10.0.1.tar.gz
tar -xf pip-10.0.1.tar.gz
cd pip-10.0.1
#ImportError: No module named 'setuptools' 用下面这句
sudo apt-get install python3-setuptools
sudo python3 setup.py install
sudo pip install powerline-status 

找到安装位置,修改tmux.conf中对应的配置

配置wsl-terminal (2)

在wsl-terminal中右键=>首选项:

  • 窗口=>滚动条:
  • 终端=>终端类型:选择xterm-256color
  • 终端=>响铃:可以全部选,复选框全部取消勾选
  • 文本=>字体:ProFont for Powerline,12pt

vim配置

  • vim升级到8.0以上
sudo add-apt-repository ppa:jonathonf/vim
sudo apt update
sudo apt install vim
  • 安装插件(如果失败,重新安装Vundle,直接使用vim配置即可)
:PluginInstall

修改配置

修改.zshrccmdtool等别名.

修改默认创建文件,文件夹权限

sudo vim /etc/porfile 

添加

umask 022

dotfiles's People

Contributors

fortystory avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.