mirror of
https://github.com/rwinkhart/artix-install-script.git
synced 2026-09-03 15:37:16 -04:00
Replaced default editor with nvim, use system-wide config
This commit is contained in:
+5
-5
@@ -61,7 +61,7 @@ permit nopass $username as root cmd /usr/bin/poweroff
|
|||||||
permit nopass $username as root cmd /usr/bin/reboot
|
permit nopass $username as root cmd /usr/bin/reboot
|
||||||
" > /etc/doas.conf
|
" > /etc/doas.conf
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/doas-completion -o /usr/share/bash-completion/completions/doas
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/doas-completion -o /usr/share/bash-completion/completions/doas
|
||||||
ln -s /usr/bin/doas /usr/bin/sudo
|
ln -s /usr/bin/doas /usr/local/bin/sudo
|
||||||
|
|
||||||
# pacman configuration
|
# pacman configuration
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/pacman.conf -o /etc/pacman.conf
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/pacman.conf -o /etc/pacman.conf
|
||||||
@@ -208,10 +208,10 @@ echo -e ""$username" soft memlock 64\n"$username" hard
|
|||||||
echo 'pinentry-program /usr/bin/pinentry-tty' > /home/"$username"/.gnupg/gpg-agent.conf # forces gpg prompts to use terminal input
|
echo 'pinentry-program /usr/bin/pinentry-tty' > /home/"$username"/.gnupg/gpg-agent.conf # forces gpg prompts to use terminal input
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/gai.conf -o /etc/gai.conf # configure gai to prefer IPv6
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/gai.conf -o /etc/gai.conf # configure gai to prefer IPv6
|
||||||
echo 'vm.max_map_count=2147483642' > /etc/sysctl.d/90-override.conf # increase max virtual memory maps (helps with some Wine games)
|
echo 'vm.max_map_count=2147483642' > /etc/sysctl.d/90-override.conf # increase max virtual memory maps (helps with some Wine games)
|
||||||
pacman -S neofetch htop vim --needed --noconfirm
|
pacman -S neofetch htop neovim --needed --noconfirm
|
||||||
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/vimrc -o /home/"$username"/.vimrc
|
mkdir -p /etc/xdg/nvim
|
||||||
chown "$username":users /home/"$username"/.vimrc
|
curl https://raw.githubusercontent.com/rwinkhart/artix-install-script/main/config-files/sysinit.vim -o /etc/xdg/nvim/sysinit.vim
|
||||||
chmod 644 /home/"$username"/.vimrc
|
ln -s /usr/bin/nvim /usr/local/bin/vim
|
||||||
|
|
||||||
# finishing up + cleaning
|
# finishing up + cleaning
|
||||||
rm -rf /chrootInstall.sh /tempfiles
|
rm -rf /chrootInstall.sh /tempfiles
|
||||||
|
|||||||
@@ -15,7 +15,7 @@ export CUDA_CACHE_PATH="$XDG_CACHE_HOME"/nv
|
|||||||
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
|
export GTK2_RC_FILES="$XDG_CONFIG_HOME"/gtk-2.0/gtkrc
|
||||||
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
|
export LESSHISTFILE="$XDG_CACHE_HOME"/less/history
|
||||||
|
|
||||||
export EDITOR=micro
|
export EDITOR=nvim
|
||||||
export BUILDDIR=/tmp/makepkg
|
export BUILDDIR=/tmp/makepkg
|
||||||
|
|
||||||
[ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ] && exec dbus-run-session startplasma-wayland
|
[ -z $DISPLAY ] && [ $(tty) = /dev/tty1 ] && exec dbus-run-session startplasma-wayland
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
" ensure correct basic settings
|
" ensure correct basic settings
|
||||||
set nocompatible
|
|
||||||
set fileencoding=utf-8
|
set fileencoding=utf-8
|
||||||
|
|
||||||
" show line numbers
|
" show line numbers
|
||||||
@@ -9,6 +8,7 @@ set number
|
|||||||
set tabstop=4
|
set tabstop=4
|
||||||
set shiftwidth=4
|
set shiftwidth=4
|
||||||
set expandtab
|
set expandtab
|
||||||
|
autocmd FileType go set noexpandtab
|
||||||
|
|
||||||
" enable visually indented text wrapping
|
" enable visually indented text wrapping
|
||||||
set wrap
|
set wrap
|
||||||
@@ -32,7 +32,7 @@ set smartcase
|
|||||||
" :20 : up to 20 lines of command-line history will be remembered
|
" :20 : up to 20 lines of command-line history will be remembered
|
||||||
" % : saves and restores the buffer list
|
" % : saves and restores the buffer list
|
||||||
" n... : where to save the viminfo files
|
" n... : where to save the viminfo files
|
||||||
set viminfo='10,\"100,:20,%,n~/.viminfo
|
set viminfo='10,\"100,:20,%,n~/.local/share/nviminfo
|
||||||
|
|
||||||
" restores cursor position in recently opened files
|
" restores cursor position in recently opened files
|
||||||
function! ResCur()
|
function! ResCur()
|
||||||
Reference in New Issue
Block a user