mirror of
https://github.com/romkatv/powerlevel10k.git
synced 2024-11-11 00:00:06 +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:
parent
494714049a
commit
3e13603557
5 changed files with 10 additions and 15 deletions
4
test-vm/Vagrantfile
vendored
4
test-vm/Vagrantfile
vendored
|
@ -16,7 +16,7 @@ Vagrant.configure(2) do |config|
|
|||
|
||||
# Bootstrap
|
||||
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: "prezto.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 guest to mount the folder. And the optional third
|
||||
# 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
|
||||
# backing providers for Vagrant. These expose provider-specific options.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
NEW_USER=vagrant-antigen
|
||||
# Create User
|
||||
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
|
||||
chmod 440 /etc/sudoers.d/$NEW_USER
|
||||
|
||||
|
@ -16,7 +16,7 @@ chmod 440 /etc/sudoers.d/$NEW_USER
|
|||
|
||||
echo "
|
||||
source ~/antigen/antigen.zsh\n
|
||||
antigen theme bhilburn/powerlevel9k powerlevel9k\n
|
||||
antigen theme /vagrant_data powerlevel9k --no-local-clone\n
|
||||
antigen apply
|
||||
" > ~/.zshrc
|
||||
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
NEW_USER=vagrant-omz
|
||||
# Create User
|
||||
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
|
||||
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
|
||||
|
||||
cd ~/.oh-my-zsh/custom
|
||||
git clone https://github.com/bhilburn/powerlevel9k.git themes/powerlevel9k
|
||||
mkdir -p ~/.oh-my-zsh/custom/themes
|
||||
ln -s /vagrant_data ~/.oh-my-zsh/custom/themes/powerlevel9k
|
||||
|
||||
echo '
|
||||
export ZSH=$HOME/.oh-my-zsh
|
||||
|
|
|
@ -1,7 +1,3 @@
|
|||
#!/usr/bin/zsh
|
||||
|
||||
git clone https://github.com/bhilburn/powerlevel9k.git
|
||||
|
||||
echo "
|
||||
source powerlevel9k/powerlevel9k.zsh-theme\n
|
||||
" > ~/.zshrc
|
||||
echo 'source /vagrant_data/powerlevel9k.zsh-theme' > ~/.zshrc
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
NEW_USER=vagrant-prezto
|
||||
# Create User
|
||||
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
|
||||
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}"
|
||||
done
|
||||
|
||||
git clone https://github.com/bhilburn/powerlevel9k.git ~/powerlevel9k
|
||||
ln -s ~/powerlevel9k/powerlevel9k.zsh-theme ~/.zprezto/modules/prompt/functions/prompt_powerlevel9k_setup
|
||||
ln -s /vagrant_data/powerlevel9k.zsh-theme ~/.zprezto/modules/prompt/functions/prompt_powerlevel9k_setup
|
||||
sed -i "s/theme\ 'sorin'/theme\ 'powerlevel9k'/g" ~/.zpreztorc
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue