Split autoinstall

This commit is contained in:
Tobias Reisinger 2022-10-22 02:13:06 +02:00
parent b7c91e79d9
commit d03d742b92
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
4 changed files with 13 additions and 3 deletions

View file

@ -8,7 +8,7 @@ then
exit exit
fi fi
autoinstall all autoinstall base
# Set name of the theme to load. Optionally, if you set this to "random" # 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. # it'll load a random theme each time that oh-my-bash is loaded.

View file

@ -1,6 +1,6 @@
#!/usr/bin/env sh #!/usr/bin/env sh
_autoinstall_all () { _autoinstall_base () {
plug_path="$HOME/.config/vim/autoload/plug.vim" plug_path="$HOME/.config/vim/autoload/plug.vim"
if [ ! -f "$plug_path" ] if [ ! -f "$plug_path" ]
then then
@ -33,7 +33,9 @@ _autoinstall_all () {
_autoinstall_file \ _autoinstall_file \
"https://raw.githubusercontent.com/qw3rtman/git-fire/master/git-fire" \ "https://raw.githubusercontent.com/qw3rtman/git-fire/master/git-fire" \
"$HOME/.local/bin/git-fire" "$HOME/.local/bin/git-fire"
}
_autoinstall_graphical () {
_autoinstall_file \ _autoinstall_file \
"https://raw.githubusercontent.com/dracula/alacritty/master/dracula.yml" \ "https://raw.githubusercontent.com/dracula/alacritty/master/dracula.yml" \
"$HOME/.config/alacritty/dracula.yml" "$HOME/.config/alacritty/dracula.yml"
@ -55,6 +57,11 @@ _autoinstall_all () {
"$HOME/.icons/Dracula-cursors.tar.xz" "$HOME/.icons/Dracula-cursors.tar.xz"
} }
_autoinstall_all () {
_autoinstall_base
_autoinstall_graphical
}
_autoinstall_git () { _autoinstall_git () {
if [ ! -d "$2" ] if [ ! -d "$2" ]
then then
@ -89,6 +96,8 @@ _autoinstall_archive () {
case $1 in case $1 in
all) _autoinstall_all ;; all) _autoinstall_all ;;
base) _autoinstall_base ;;
graphical) _autoinstall_graphical ;;
git) _autoinstall_git "$2" "$3" ;; git) _autoinstall_git "$2" "$3" ;;
file) _autoinstall_file "$2" "$3" ;; file) _autoinstall_file "$2" "$3" ;;
archive) _autoinstall_archive "$2" "$3" ;; archive) _autoinstall_archive "$2" "$3" ;;

View file

@ -7,7 +7,7 @@ then
rm "$HOME/.zshrc" rm "$HOME/.zshrc"
fi fi
autoinstall all autoinstall base
# Set name of the theme to load --- if set to "random", it will # 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, # load a random theme each time oh-my-zsh is loaded, in which case,

View file

@ -19,6 +19,7 @@ _autostart()
(pass notes/keepass | head -n 1 | keepassxc --pw-stdin ~/sync/passwords.kdbx) & (pass notes/keepass | head -n 1 | keepassxc --pw-stdin ~/sync/passwords.kdbx) &
pass x && sleep 5 pass x && sleep 5
autoinstall graphical
autostart-manage start autostart-manage start
} }