From 927ddd190c1e0866b2b1a7150f2bf7d1d34f3214 Mon Sep 17 00:00:00 2001 From: Felix Nehrke Date: Mon, 21 Nov 2022 20:27:30 +0100 Subject: [PATCH] Add neovim on linux devices and make it the default "vim", macos has to follow soon --- .config/dotfiles/setup-machine.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/dotfiles/setup-machine.sh b/.config/dotfiles/setup-machine.sh index 5783370..a57b530 100755 --- a/.config/dotfiles/setup-machine.sh +++ b/.config/dotfiles/setup-machine.sh @@ -33,6 +33,7 @@ else i3status \ rofi \ oathtool \ + neovim \ enpass # install icon-font which I use for i3status MATERIAL_DESIGN_FONT_ZIP=MaterialDesign-Webfont-4.9.95.zip @@ -122,6 +123,10 @@ export NVM_DIR="$XDG_CONFIG_HOME/nvm" [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion # setup defaults -sudo update-alternatives --set x-terminal-emulator /usr/bin/urxvt +if [ $(which update-alternatives) ] +then + sudo update-alternatives --set x-terminal-emulator /usr/bin/urxvt + sudo update-alternatives --set vim /usr/bin/nvim +fi echo "ready for work :-)"