Skip to content

Instantly share code, notes, and snippets.

@lobre
Created August 25, 2020 21:32
Show Gist options
  • Save lobre/01d2b0b37557b4fb3d55a813c79d73e0 to your computer and use it in GitHub Desktop.
Save lobre/01d2b0b37557b4fb3d55a813c79d73e0 to your computer and use it in GitHub Desktop.
Bash function to run oni2 AppImage on NixOS
function oni() {
dir="$HOME"
if [[ -n "$1" ]]; then
dir=$(readlink -m "$1")
fi
unset LD_LIBRARY_PATH
unset LIBGL_DRIVERS_PATH
nix-shell -p appimage-run --run "appimage-run $HOME/Downloads/Onivim2-x86_64-master.AppImage $dir"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment