Compare commits
5 Commits
679a8b7a2b
...
98fbfa5390
Author | SHA1 | Date |
---|---|---|
Augusto Gunsch | 98fbfa5390 | |
Augusto Gunsch | 9e52a1adab | |
Augusto Gunsch | fbc4fb24b9 | |
Augusto Gunsch | 757039302b | |
Augusto Gunsch | d52368ecec |
|
@ -1,5 +1,4 @@
|
|||
PAC,alsa-utils,Utilities for ALSA
|
||||
PAC,breeze-icons,Icon set
|
||||
PAC,clang,C compiler
|
||||
PAC,cmake,Meta-build system
|
||||
PAC,cmus,Terminal music player
|
||||
|
@ -20,7 +19,7 @@ PAC,libxinerama,X11 extension which provides support for extending a desktop acr
|
|||
PAC,lxsession,Graphical authentication agent
|
||||
PAC,man,Interface to system manuals
|
||||
PAC,maxima,Computer algebra system
|
||||
AUR,midnight-gtk-theme-git,GTK theme
|
||||
AUR,gtk-theme-material-black,GTK theme
|
||||
AUR,mmv,Batch renamer
|
||||
PAC,mpv,Media player
|
||||
PAC,mupdf,Lightweight PDF viewer
|
||||
|
|
|
|
@ -32,6 +32,7 @@ cd "$(dirname "$0")"
|
|||
|
||||
### URLs ###
|
||||
DOTFILES="https://github.com/augustogunsch/dotfiles"
|
||||
VIM_PLUGIN_CFG="https://github.com/augustogunsch/vim-plugin-config"
|
||||
PACKAGES_URL="https://raw.githubusercontent.com/augustogunsch/install-arch/master/packages.csv"
|
||||
|
||||
### COLORS ###
|
||||
|
@ -198,7 +199,7 @@ install_aur() {
|
|||
echo -ne "Installing ${LGREEN}$1${NC} from AUR ($2)..."
|
||||
fi
|
||||
|
||||
se +e
|
||||
set +e
|
||||
quiet sudo -u nobody GOCACHE="$AUR_BUILD_DIR/go" makepkg --noconfirm
|
||||
if [ $? -eq 0 ]; then
|
||||
set +e
|
||||
|
@ -462,6 +463,7 @@ configure_doas() {
|
|||
append_line $DOAS_CONF "permit persist $DOAS_USER as root"
|
||||
append_line $DOAS_CONF "permit nopass $DOAS_USER as root cmd pacman args -Syu"
|
||||
append_line $DOAS_CONF "permit nopass $DOAS_USER as root cmd pacman args -Syyu"
|
||||
append_line $DOAS_CONF "permit nopass root"
|
||||
fi
|
||||
}
|
||||
|
||||
|
@ -507,16 +509,26 @@ configure_nvim_for() {
|
|||
ultra_quiet sudo -u "$1" nvim -E -c PlugInstall -c qall
|
||||
set -e
|
||||
echo "done"
|
||||
|
||||
echo -n "Downloading neovim plugins configuration (~/.vim-plugin-config)..."
|
||||
quiet sudo -u "$1" git clone "$VIM_PLUGIN_CFG" ./.vim-plugin-config
|
||||
echo "done"
|
||||
|
||||
echo -n "Linking neovim plugins configuration..."
|
||||
qpushd ./.vim-plugin-config
|
||||
quiet sudo -u "$1" ./install.sh
|
||||
echo "done"
|
||||
qpopd
|
||||
}
|
||||
|
||||
# pwd must be the home dir of the user
|
||||
install_dotfiles_for() {
|
||||
echo -n "Downloading dotfiles for $1 (~/dotfiles)..."
|
||||
quiet sudo -u "$1" git clone "$DOTFILES" ./dotfiles
|
||||
echo -n "Downloading dotfiles for $1 (~/.dotfiles)..."
|
||||
quiet sudo -u "$1" git clone "$DOTFILES" ./.dotfiles
|
||||
echo "done"
|
||||
|
||||
echo -n "Linking dotfiles..."
|
||||
qpushd "./dotfiles"
|
||||
qpushd ./.dotfiles
|
||||
quiet sudo -u "$1" ./install.sh
|
||||
echo "done"
|
||||
qpopd
|
||||
|
|
Loading…
Reference in New Issue