Skip to content

Instantly share code, notes, and snippets.

View zer0beat's full-sized avatar

Joel Llacer Martinez zer0beat

View GitHub Profile
@zer0beat
zer0beat / install-tmux-on-wsl.sh
Last active September 21, 2020 12:15
Install tmux from source on Bash for Windows (WSL)
#!/bin/bash
# Download and install command
# wget -qO- https://gist.github.com/zer0beat/04824c72055fa47325490ee5f842fa4f/raw | TMUX_VERSION=2.3 bash
TMUX_VERSION=${TMUX_VERSION:-"2.3"}
TMUX_SOURCE_CODE=https://github.com/tmux/tmux/releases/download/${TMUX_VERSION}/tmux-${TMUX_VERSION}.tar.gz
WORKDIR=~/tmux-install
# Install dependencies
@zer0beat
zer0beat / install-vim-on-wsl.sh
Last active March 2, 2022 03:13
Install vim from source on Bash for Windows (WSL)
#!/bin/bash
# Download and install command
# wget -qO- https://gist.github.com/zer0beat/2f3aa1e81d9bedb0355a46e59ffcea34/raw | VIM_VERSION=8.0.1111 bash
VIM_VERSION=${VIM_VERSION:-"8.0.1111"}
VIM_SOURCE_CODE=https://github.com/vim/vim/archive/v${VIM_VERSION}.tar.gz
WORKDIR=~/vim-install
# Install dependencies
# source: https://askubuntu.com/questions/53578/can-i-install-in-uefi-mode-with-the-alternate-installer/57380#57380
### Mounting ###
sudo mount /dev/sda# /mnt #Mount root (/) partition
sudo mount /dev/sda# /mnt/boot #Mount boot (/boot) partition
(if separate from root partition)
sudo mkdir -p /mnt/boot/efi #Create EFI partition mount point
sudo mount /dev/sda1 /mnt/boot/efi #Mount EFI partition
sudo mount --bind /dev /mnt/dev