Add efivars mount ro, add vimrc

This commit is contained in:
Riyyi
2018-01-30 20:30:59 +01:00
parent 30d58fd49e
commit 54ce47cc32
2 changed files with 20 additions and 1 deletions
+7 -1
View File
@@ -83,7 +83,7 @@ All packages that are manually installed via pacman -S, dependencies not include
python2-setuptools python2-setuptools
python2-click-5.1 (AUR) python2-click-5.1 (AUR)
platformio (AUR) platformio (AUR)
vim gvim
checkbashisms (AUR) checkbashisms (AUR)
xss-lock-git (AUR) xss-lock-git (AUR)
inkscape inkscape
@@ -176,3 +176,9 @@ Set Firefox as default browser:
```sh ```sh
$ xdg-settings set default-web-browser firefox.desktop $ xdg-settings set default-web-browser firefox.desktop
``` ```
Prevent bricking motherboard by mounting efivars read-only:<br>
https://wiki.archlinux.org/index.php/Unified_Extensible_Firmware_Interface#Mount_efivarfs
```sh
$ nano /etc/fstab
(add)efivarfs /sys/firmware/efi/efivars efivarfs ro,nosuid,nodev,noexec,noatime 0 0
```
+13
View File
@@ -0,0 +1,13 @@
set nocompatible " Use Vim defaults instead of 100% vi compatibility
set backspace=indent,eol,start " more powerful backspacing
" Now we set some defaults for the editor
set history=1000 " keep 50 lines of command line history
set ruler " show the cursor position all the time
" Suffixes that get lower priority when doing tab completion for filenames.
" These are files we are not likely to want to edit or read.
set suffixes=.bak,~,.swp,.o,.info,.aux,.log,.dvi,.bbl,.blg,.brf,.cb,.ind,.idx,.ilg,.inx,.out,.toc,.png,.jpg
" Default clipboard register "+ (CLIPBOARD buffer in X)
set clipboard=unnamedplus