nvim to distrobox

This commit is contained in:
John Mertz 2023-01-08 22:48:08 -05:00
parent 6d33d9446f
commit e861cddd6d
1 changed files with 8 additions and 0 deletions

8
distrobox/toolbox/nvim Executable file
View File

@ -0,0 +1,8 @@
#!/bin/sh
# distrobox_binary
# name: toolbox
if [ ! -f /run/.containerenv ] && [ ! -f /.dockerenv ]; then
/usr/bin/distrobox-enter -n toolbox -- /usr/bin/nvim "$@"
else
/usr/bin/nvim "$@"
fi