Skip to content

Instantly share code, notes, and snippets.

@karansinghgit
Last active July 8, 2020 13:32
Show Gist options
  • Save karansinghgit/548b21edd3cc372250e1e612ac0e3409 to your computer and use it in GitHub Desktop.
Save karansinghgit/548b21edd3cc372250e1e612ac0e3409 to your computer and use it in GitHub Desktop.
WSL Ubuntu Steps

BASH & VIM:

  1. Change Home Directory https://superuser.com/questions/1132626/changing-home-directory-of-user-on-windows-subsystem-for-linux

  2. Stop Beep sound https://stackoverflow.com/questions/36724209/disable-beep-of-linux-bash-on-windows-10

  3. Change Bash Prompt Read this:https://askubuntu.com/questions/835560/why-does-my-custom-prompt-not-show-in-ubuntu-bash-on-windows-10 Then this: https://askubuntu.com/questions/969632/where-is-bash-profile-located-in-windows-subsystem-for-linux In WSL, we have to modify /etc/profile Current export PS1="\e[0;97;1m[\e[0;93;1m\u\e[0;90;1m:\e[0;91;1m \w\e[0;97;1m]\e[0;97;1m $ "

  4. Turn off vim beep sounds https://stackoverflow.com/questions/42772115/bash-on-windows-10-where-is-vimrc set visuallbell

VSCODE:

  1. Install Fira Code Font and then enable ligatures and font weight 400(regular), size 16.

  2. Dainty – Material Theme Ocean as the theme

  3. Remote WSL EXTENSION

Path : /mnt/d/.nvm/versions/node/v12.18.1/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/mnt/c/Program Files/WindowsApps/CanonicalGroupLimited.Ubuntu18.04onWindows_2020. 1804.7.0_x64__79rhkp1fndgsc:/mnt/c/Program Files (x86)/Common Files/Oracle/Java/javapath:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt /c/Windows/System32/OpenSSH/:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/Java/jre1.8.0_201:/mnt/c/Program Files/Java/jdk1.8.0_201/bin:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS: /mnt/c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/WINDOWS/system32:/mnt/c/WINDOWS:/mnt/ c/WINDOWS/System32/Wbem:/mnt/c/WINDOWS/System32/WindowsPowerShell/v1.0/:/mnt/c/WINDOWS/System32/OpenSSH/:/mnt/c/Users/USER/AppData/Local/Programs/Python/Python35/Scripts/:/mnt/c/Users/USER/AppData/Local/Progra ms/Python/Python35/:/mnt/c/Users/USER/AppData/Local/Programs/Python/Launcher/:/mnt/c/Users/USER/AppData/Local/Microsoft/WindowsApps:/mnt/c/flutter/bin:/mnt/c/Users/USER/AppData/Local/atom/bin:/mnt/c/Program Fi les/Sublime Text 3/:/mnt/c/Users/USER/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/USER/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/MinGW/bin:/mnt/c/work/flutter/bin:/mnt/c/Users/USER/AppData/Local /Android/Sdk/platform-tools:/snap/bin

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment