Skip to content

ttalpha/fish-shell-wsl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 

Repository files navigation

WSL

  • Enable WSL on Windows in the Command Line
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

  • Install Ubuntu in Microsoft Store here

  • Run Ubuntu and run the command to upgrade the repository:
    sudo apt update

Fish Shell on WSL

  • Install Fish
    sudo apt install fish

  • Run Fish Shell
    fish

  • Install curl
    sudo apt install curl

  • Install powerline fonts
    sudo apt install fonts-powerline

  • Install Oh My Fish
    curl https://raw.githubusercontent.com/oh-my-fish/oh-my-fish/master/bin/install | fish

  • Set fish as a default shell
    chsh -s /usr/bin/fish

NodeJS

  • Install NVM
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

  • Install NVM to update NodeJS for Oh My Fish
    omf install https://github.com/fabioantunes/fish-nvm
    omf install https://github.com/edc/bass

  • Install latest NodeJS version
    nvm install 16.13.1

  • Switch Node versions:
    nvm use 16.13.1

PostgreSQL

  • Install PostgreSQL on WSL:
    sudo apt install postgresql postgresql-contrib

  • Confirm installation:
    psql --version

  • Create a postgres user and set the password for the user postgres:
    sudo passwd postgres

  • Start running the database:
    sudo service postgresql start

  • Connect to the postgres service and open the psql shell:
    sudo -u postgres psql

  • Change password in case authentication failed:
    ALTER USER postgres WITH PASSWORD 'password';

Git

  • Add a PPA (Personal Package Archive), maintained by the Git team for Ubuntu users
    sudo add-apt-repository ppa:git-core/ppa

  • Update git
    sudo apt install git

Vim

sudo update-alternatives --config editor

This will show a table like this:

There are 4 choices for the alternative editor (providing /usr/bin/editor).

  Selection    Path                Priority   Status
------------------------------------------------------------
* 0            /bin/nano            40        auto mode
  1            /bin/ed             -100       manual mode
  2            /bin/nano            40        manual mode
  3            /usr/bin/vim.basic   30        manual mode
  4            /usr/bin/vim.tiny    10        manual mode

Press enter to keep the current choice[*], or type selection number: 3

Find vim.basic or vim.tiny and press the selection number and Enter.

About

How to install WSL on Window OS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages