From d03d742b921b374a261831f1ef83d5e5c52a112a Mon Sep 17 00:00:00 2001 From: Tobias Reisinger Date: Sat, 22 Oct 2022 02:13:06 +0200 Subject: [PATCH] Split autoinstall --- .bashrc | 2 +- .bin/autoinstall | 11 ++++++++++- .config/zsh/.zshrc | 2 +- .xprofile | 1 + 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.bashrc b/.bashrc index 431ecca..89b82e8 100644 --- a/.bashrc +++ b/.bashrc @@ -8,7 +8,7 @@ then exit fi -autoinstall all +autoinstall base # Set name of the theme to load. Optionally, if you set this to "random" # it'll load a random theme each time that oh-my-bash is loaded. diff --git a/.bin/autoinstall b/.bin/autoinstall index d1afde4..ccdcecd 100755 --- a/.bin/autoinstall +++ b/.bin/autoinstall @@ -1,6 +1,6 @@ #!/usr/bin/env sh -_autoinstall_all () { +_autoinstall_base () { plug_path="$HOME/.config/vim/autoload/plug.vim" if [ ! -f "$plug_path" ] then @@ -33,7 +33,9 @@ _autoinstall_all () { _autoinstall_file \ "https://raw.githubusercontent.com/qw3rtman/git-fire/master/git-fire" \ "$HOME/.local/bin/git-fire" +} +_autoinstall_graphical () { _autoinstall_file \ "https://raw.githubusercontent.com/dracula/alacritty/master/dracula.yml" \ "$HOME/.config/alacritty/dracula.yml" @@ -55,6 +57,11 @@ _autoinstall_all () { "$HOME/.icons/Dracula-cursors.tar.xz" } +_autoinstall_all () { + _autoinstall_base + _autoinstall_graphical +} + _autoinstall_git () { if [ ! -d "$2" ] then @@ -89,6 +96,8 @@ _autoinstall_archive () { case $1 in all) _autoinstall_all ;; + base) _autoinstall_base ;; + graphical) _autoinstall_graphical ;; git) _autoinstall_git "$2" "$3" ;; file) _autoinstall_file "$2" "$3" ;; archive) _autoinstall_archive "$2" "$3" ;; diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 14fa23e..284ea41 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -7,7 +7,7 @@ then rm "$HOME/.zshrc" fi -autoinstall all +autoinstall base # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, diff --git a/.xprofile b/.xprofile index b4b2566..db5613f 100644 --- a/.xprofile +++ b/.xprofile @@ -19,6 +19,7 @@ _autostart() (pass notes/keepass | head -n 1 | keepassxc --pw-stdin ~/sync/passwords.kdbx) & pass x && sleep 5 + autoinstall graphical autostart-manage start }