.dotfiles/.local/bin/nvimstart.sh

10 lines
393 B
Bash

#!/bin/sh
# For some unexplainable reason (probably some GNOME "feature") opening nvim from a file manager (any)
# via its .desktop file doesn't fully load the user's PATH so we forcing it
# This doesn't happen when opening from a terminal however.
export PATH=$PATH:/home/wynd/.asdf/shims/ \
&& export PATH=$PATH:/home/wynd/.nimble/bin/ \
&& env -u WAYLAND_DISPLAY alacritty -e nvim "$1"