Split autoinstall
This commit is contained in:
parent
b7c91e79d9
commit
d03d742b92
4 changed files with 13 additions and 3 deletions
2
.bashrc
2
.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.
|
||||
|
|
|
@ -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" ;;
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue