mirror of https://github.com/mitchell/dotfiles.git
Remove function prefixes in provision_linux
This commit is contained in:
parent
34ff14442e
commit
36aef3ad13
|
@ -13,7 +13,6 @@ Run ./provision_linux <function_name> to see it\'s definition.
|
||||||
|
|
||||||
### Config ###
|
### Config ###
|
||||||
|
|
||||||
set -g cmd_func_prefix provision
|
|
||||||
set -g distro
|
set -g distro
|
||||||
|
|
||||||
for line in (cat /etc/os-release)
|
for line in (cat /etc/os-release)
|
||||||
|
@ -26,13 +25,7 @@ end
|
||||||
|
|
||||||
### Commands ###
|
### Commands ###
|
||||||
|
|
||||||
function provision_default -d 'Provisioning terminal, desktop, and m-net'
|
function terminal_env -d 'Install base terminal utilities and sync configurations'
|
||||||
provision_terminal_env
|
|
||||||
and provision_desktop_env
|
|
||||||
and provision_m_net
|
|
||||||
end
|
|
||||||
|
|
||||||
function provision_terminal_env -d 'Install base terminal utilities and sync configurations'
|
|
||||||
if test $distro = arch
|
if test $distro = arch
|
||||||
log 'Installing pikaur from AUR'
|
log 'Installing pikaur from AUR'
|
||||||
|
|
||||||
|
@ -87,7 +80,7 @@ function provision_terminal_env -d 'Install base terminal utilities and sync con
|
||||||
and git checkout (git describe --abbrev=0 --tags)
|
and git checkout (git describe --abbrev=0 --tags)
|
||||||
end
|
end
|
||||||
|
|
||||||
function provision_desktop_env -d 'Install base desktop utilities and configure theme'
|
function desktop_env -d 'Install base desktop utilities and configure theme'
|
||||||
set -l base_pkgs \
|
set -l base_pkgs \
|
||||||
xclip \
|
xclip \
|
||||||
bspwm \
|
bspwm \
|
||||||
|
@ -200,7 +193,7 @@ gtk-theme-name = oomox-arc-gruvbox
|
||||||
gtk-font-name = IBM Plex Sans 11" >~/.config/gtk-3.0/settings.ini
|
gtk-font-name = IBM Plex Sans 11" >~/.config/gtk-3.0/settings.ini
|
||||||
end
|
end
|
||||||
|
|
||||||
function provision_m_net -d 'Install syncthing and keepassxc'
|
function m_net -d 'Install syncthing and keepassxc'
|
||||||
log 'Installing m-net utilities'
|
log 'Installing m-net utilities'
|
||||||
install_pkgs \
|
install_pkgs \
|
||||||
wireguard-tools \
|
wireguard-tools \
|
||||||
|
@ -212,12 +205,12 @@ function provision_m_net -d 'Install syncthing and keepassxc'
|
||||||
sudo systemctl enable syncthing@m.service
|
sudo systemctl enable syncthing@m.service
|
||||||
end
|
end
|
||||||
|
|
||||||
function provision_libvirt -d 'Provision libvirt and virt-manager'
|
function libvirt -d 'Provision libvirt and virt-manager'
|
||||||
log 'Installing libvirt, qemu, and virt-manager'
|
log 'Installing libvirt, qemu, and virt-manager'
|
||||||
install_libvirt
|
install_libvirt
|
||||||
end
|
end
|
||||||
|
|
||||||
function provision_vagrant -d 'Provision vagrant with libvirt'
|
function vagrant -d 'Provision vagrant with libvirt'
|
||||||
install_libvirt
|
install_libvirt
|
||||||
or return $status
|
or return $status
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue