@@ -94,27 +94,38 @@ build {
94
94
]
95
95
}
96
96
97
-
98
97
provisioner "file" {
99
98
source = " files/pve.cfg"
100
99
destination = " /tmp/pve.cfg"
101
100
}
102
101
103
-
104
102
provisioner "shell" {
105
103
inline = [ " sudo cp /tmp/pve.cfg /etc/cloud/cloud.cfg.d/pve.cfg" ]
106
104
}
107
105
108
- # Install Commonly Used Things - add alias's - set git config
106
+ # Install commonly used things - add alias's - set git config
109
107
provisioner "shell" {
110
108
inline = [
111
- " sudo apt-get install -y ca-certificates curl gnupg lsb-release nfs-common qemu-guest-agent net-tools" ,
109
+ " sudo apt-get install -y ca-certificates curl gnupg lsb-release nfs-common qemu-guest-agent net-tools zsh neofetch fzf" ,
110
+ " sudo chsh -s $(which zsh) mafyuh" ,
112
111
" curl -fsSL https://get.docker.com | sudo sh" ,
113
- " echo \" alias dcu='docker compose up -d'\" >> ~/.bashrc" ,
114
- " echo \" alias dcd='docker compose down'\" >> ~/.bashrc" ,
112
+ " sh -c \" $(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\" --unattended" ,
113
+ " git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting" ,
114
+ " git clone https://github.com/zsh-users/zsh-autosuggestions.git $${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-autosuggestions" ,
115
+ " git clone https://github.com/zsh-users/zsh-history-substring-search.git $${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/zsh-history-substring-search" ,
116
+ " git clone https://github.com/MichaelAquilina/zsh-you-should-use.git $${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/you-should-use" ,
117
+ " mkdir -p /home/mafyuh/.local/bin" ,
118
+ " curl -fsSL https://github.com/JanDeDobbeleer/oh-my-posh/releases/latest/download/posh-linux-amd64 -o /home/mafyuh/.local/bin/oh-my-posh" ,
119
+ " sudo chmod +x /home/mafyuh/.local/bin/oh-my-posh" ,
115
120
" git config --global user.name \" Mafyuh\" " ,
116
121
" git config --global user.email \" matt@mafyuh.com\" " ,
117
122
" sudo apt-get -y update"
118
123
]
119
124
}
120
- }
125
+
126
+ provisioner "file" {
127
+ source = " files/.zshrc"
128
+ destination = " ~/.zshrc"
129
+ }
130
+
131
+ }
0 commit comments