- Download repo https://github.com/powerline/fonts
- Open Powershell as admin and run
Set-ExecutionPolicy Bypass
- Execute
.\install.ps1
inside powerline/fonts repo - Run
Set-ExecutionPolicy Default
to turn policy back
- in terminal
sudo apt-get install zsh
vim ~/.bashrc
add
if [ -t 1 ]; then
exec zsh
fi
- go to https://github.com/robbyrussell/oh-my-zsh
- find installation command ex.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- change theme or add plugin in
~/.zshrc
# changing theme
ZSH_THEME="robbyrussell" # or "agnoster"
# adding plugins
plugins=(
git
bundler
dotenv
osx
rake
rbenv
ruby
)
- Open Windows's Docker Settings Window
- General Tab
- Check Expose daemon on tcp://localhost:2375 without TSL
- install docker for ubuntu ref: https://docs.docker.com/install/linux/docker-ce/ubuntu/#extra-steps-for-aufs
- install docker-compose for ubuntu ref: https://docs.docker.com/compose/install/#prerequisites
- Add
export DOCKER_HOST=tcp://0.0.0.0:2375
to~/.zshrc
- Only for Ubuntu 18
sudo vim /etc/wsl.conf
add:
[automount]
root = /
options = "metadata"
- to mount drive
:C/
dosudo mkdir /c
andsudo mount --bind /mnt/c /c
, you can do this with other drive as well - auto mount by add
sudo mount --bind /mnt/c /c
to bottom of file~/.zshrc
- auto mount without asking for password
sudo visudo
then addpoldet ALL=(root) NOPASSWD: /bin/mount
at bottom of file, Replacepoldet
with user username
- Create
~/dev
link for short access pathln -s /c/Users/Poldet/dev ~/dev
- git windows and git ubuntu is not sync
git config core.autocrlf true
Reference:
https://nickjanetakis.com/blog/setting-up-docker-for-windows-and-wsl-to-work-flawlessly