Skip to content

Instantly share code, notes, and snippets.

@dalgu90
Created April 16, 2018 05:54
Show Gist options
  • Save dalgu90/babdb6e07eda5b5685932d05c58cf471 to your computer and use it in GitHub Desktop.
Save dalgu90/babdb6e07eda5b5685932d05c58cf471 to your computer and use it in GitHub Desktop.
Install vmtouch on local path
#!/bin/sh
PREFIX="$HOME/.local/"
install_vmtouch() {
# The project page of linux "vmtouch" command is located at https://github.com/hoytech/vmtouch
TMP_VMTOUCH_DIR="/tmp/$USER/vmtouch"; mkdir -p $TMP_VMTOUCH_DIR
cd $TMP_VMTOUCH_DIR
git clone https://github.com/hoytech/vmtouch.git
cd vmtouch
make
mv -v vmtouch "$PREFIX/bin"
# Maybe $PREFIX/bin was added to $PATH, if you run the wookayin/dotfiles script
# echo "export PATH=$PREFIX/bin:$PATH"
}
install_vmtouch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment