Created
August 25, 2020 21:32
-
-
Save lobre/01d2b0b37557b4fb3d55a813c79d73e0 to your computer and use it in GitHub Desktop.
Bash function to run oni2 AppImage on NixOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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