1
0
Fork 0
mirror of https://github.com/romkatv/powerlevel10k.git synced 2024-12-18 05:40:07 +00:00

It makes no sense, to clone the powerlevel9k-theme in all frameworks. Instead, we can simply use the one, which is mounted in /vagrant_data..

This commit is contained in:
Dominik Ritter 2015-06-11 00:58:46 +02:00
parent 494714049a
commit 3e13603557
5 changed files with 10 additions and 15 deletions

4
test-vm/Vagrantfile vendored
View file

@ -16,7 +16,7 @@ Vagrant.configure(2) do |config|
# Bootstrap # Bootstrap
config.vm.provision :shell, path: "bootstrap.sh", privileged: false config.vm.provision :shell, path: "bootstrap.sh", privileged: false
config.vm.provision :shell, path: "plain.sh" config.vm.provision :shell, path: "plain.sh", privileged: false
config.vm.provision :shell, path: "antigen.sh" config.vm.provision :shell, path: "antigen.sh"
config.vm.provision :shell, path: "prezto.sh" config.vm.provision :shell, path: "prezto.sh"
config.vm.provision :shell, path: "omz.sh" config.vm.provision :shell, path: "omz.sh"
@ -44,7 +44,7 @@ Vagrant.configure(2) do |config|
# the path on the host to the actual folder. The second argument is # the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third # the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options. # argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data" config.vm.synced_folder "..", "/vagrant_data"
# Provider-specific configuration so you can fine-tune various # Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options. # backing providers for Vagrant. These expose provider-specific options.

View file

@ -3,7 +3,7 @@
NEW_USER=vagrant-antigen NEW_USER=vagrant-antigen
# Create User # Create User
PASSWORD='$6$OgLg9v2Z$Db38Jr9inZG7y8BzL8kqFK23fF5jZ7FU1oiIBLFjNYR9XVX03fwQayMgA6Rm1rzLbXaf.gkZaTWhB9pv5XLq11' PASSWORD='$6$OgLg9v2Z$Db38Jr9inZG7y8BzL8kqFK23fF5jZ7FU1oiIBLFjNYR9XVX03fwQayMgA6Rm1rzLbXaf.gkZaTWhB9pv5XLq11'
sudo useradd -p $PASSWORD -g vagrant -s $(which zsh) -m $NEW_USER useradd -p $PASSWORD -g vagrant -s $(which zsh) -m $NEW_USER
echo "$NEW_USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/$NEW_USER echo "$NEW_USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/$NEW_USER
chmod 440 /etc/sudoers.d/$NEW_USER chmod 440 /etc/sudoers.d/$NEW_USER
@ -16,7 +16,7 @@ chmod 440 /etc/sudoers.d/$NEW_USER
echo " echo "
source ~/antigen/antigen.zsh\n source ~/antigen/antigen.zsh\n
antigen theme bhilburn/powerlevel9k powerlevel9k\n antigen theme /vagrant_data powerlevel9k --no-local-clone\n
antigen apply antigen apply
" > ~/.zshrc " > ~/.zshrc

View file

@ -3,7 +3,7 @@
NEW_USER=vagrant-omz NEW_USER=vagrant-omz
# Create User # Create User
PASSWORD='$6$OgLg9v2Z$Db38Jr9inZG7y8BzL8kqFK23fF5jZ7FU1oiIBLFjNYR9XVX03fwQayMgA6Rm1rzLbXaf.gkZaTWhB9pv5XLq11' PASSWORD='$6$OgLg9v2Z$Db38Jr9inZG7y8BzL8kqFK23fF5jZ7FU1oiIBLFjNYR9XVX03fwQayMgA6Rm1rzLbXaf.gkZaTWhB9pv5XLq11'
sudo useradd -p $PASSWORD -g vagrant -s $(which zsh) -m $NEW_USER useradd -p $PASSWORD -g vagrant -s $(which zsh) -m $NEW_USER
echo "$NEW_USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/$NEW_USER echo "$NEW_USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/$NEW_USER
chmod 440 /etc/sudoers.d/$NEW_USER chmod 440 /etc/sudoers.d/$NEW_USER
@ -16,8 +16,8 @@ chmod 440 /etc/sudoers.d/$NEW_USER
curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh curl -L https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sh
cd ~/.oh-my-zsh/custom mkdir -p ~/.oh-my-zsh/custom/themes
git clone https://github.com/bhilburn/powerlevel9k.git themes/powerlevel9k ln -s /vagrant_data ~/.oh-my-zsh/custom/themes/powerlevel9k
echo ' echo '
export ZSH=$HOME/.oh-my-zsh export ZSH=$HOME/.oh-my-zsh

View file

@ -1,7 +1,3 @@
#!/usr/bin/zsh #!/usr/bin/zsh
git clone https://github.com/bhilburn/powerlevel9k.git echo 'source /vagrant_data/powerlevel9k.zsh-theme' > ~/.zshrc
echo "
source powerlevel9k/powerlevel9k.zsh-theme\n
" > ~/.zshrc

View file

@ -3,7 +3,7 @@
NEW_USER=vagrant-prezto NEW_USER=vagrant-prezto
# Create User # Create User
PASSWORD='$6$OgLg9v2Z$Db38Jr9inZG7y8BzL8kqFK23fF5jZ7FU1oiIBLFjNYR9XVX03fwQayMgA6Rm1rzLbXaf.gkZaTWhB9pv5XLq11' PASSWORD='$6$OgLg9v2Z$Db38Jr9inZG7y8BzL8kqFK23fF5jZ7FU1oiIBLFjNYR9XVX03fwQayMgA6Rm1rzLbXaf.gkZaTWhB9pv5XLq11'
sudo useradd -p $PASSWORD -g vagrant -s $(which zsh) -m $NEW_USER useradd -p $PASSWORD -g vagrant -s $(which zsh) -m $NEW_USER
echo "$NEW_USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/$NEW_USER echo "$NEW_USER ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/$NEW_USER
chmod 440 /etc/sudoers.d/$NEW_USER chmod 440 /etc/sudoers.d/$NEW_USER
@ -21,7 +21,6 @@ chmod 440 /etc/sudoers.d/$NEW_USER
ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}" ln -s "$rcfile" "${ZDOTDIR:-$HOME}/.${rcfile:t}"
done done
git clone https://github.com/bhilburn/powerlevel9k.git ~/powerlevel9k ln -s /vagrant_data/powerlevel9k.zsh-theme ~/.zprezto/modules/prompt/functions/prompt_powerlevel9k_setup
ln -s ~/powerlevel9k/powerlevel9k.zsh-theme ~/.zprezto/modules/prompt/functions/prompt_powerlevel9k_setup
sed -i "s/theme\ 'sorin'/theme\ 'powerlevel9k'/g" ~/.zpreztorc sed -i "s/theme\ 'sorin'/theme\ 'powerlevel9k'/g" ~/.zpreztorc
) )