mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
As @abenz1267 pointed out, the previous solution wasn't the greatest. This is the proper solution.
22 lines
826 B
Bash
22 lines
826 B
Bash
echo "Set nvim as default via xdg-mime"
|
|
|
|
rm ~/.local/share/applications/nvim.desktop || true
|
|
|
|
xdg-mime default nvim.desktop text/plain
|
|
xdg-mime default nvim.desktop text/english
|
|
xdg-mime default nvim.desktop text/x-makefile
|
|
xdg-mime default nvim.desktop text/x-c++hdr
|
|
xdg-mime default nvim.desktop text/x-c++src
|
|
xdg-mime default nvim.desktop text/x-chdr
|
|
xdg-mime default nvim.desktop text/x-csrc
|
|
xdg-mime default nvim.desktop text/x-java
|
|
xdg-mime default nvim.desktop text/x-moc
|
|
xdg-mime default nvim.desktop text/x-pascal
|
|
xdg-mime default nvim.desktop text/x-tcl
|
|
xdg-mime default nvim.desktop text/x-tex
|
|
xdg-mime default nvim.desktop application/x-shellscript
|
|
xdg-mime default nvim.desktop text/x-c
|
|
xdg-mime default nvim.desktop text/x-c++
|
|
xdg-mime default nvim.desktop application/xml
|
|
xdg-mime default nvim.desktop text/xml
|