1
0
mirror of https://github.com/gryf/vmstrap.git synced 2026-01-28 19:05:47 +01:00

Added openrc to bashrc, fixed some shellcheck issues

This commit is contained in:
2020-04-29 10:28:12 +02:00
parent df7687699c
commit 1658e6de94

View File

@@ -12,44 +12,43 @@
# 1. update # 1. update
sudo apt update && sudo apt -y upgrade sudo apt update && sudo apt -y upgrade
lsb_release -cs 2>/dev/null | grep -q bionic if lsb_release -cs 2>/dev/null | grep -q bionic; then
if [[ $? -eq 0 ]]; then PGS=(ccze
PGS="ccze exuberant-ctags
exuberant-ctags flake8
flake8 git-review
git-review htop
htop ipython3
ipython3 mc
mc python-apsw
python-apsw python-flake8
python-flake8 python-jedi
python-jedi python-pip
python-pip python3-flake8
python3-flake8 python3-jedi
python3-jedi silversearcher-ag
silversearcher-ag tmate
tmate vim-gtk)
vim-gtk"
else else
PGS="ccze PGS=(ccze
exuberant-ctags exuberant-ctags
flake8 flake8
git-review git-review
htop htop
ipython ipython
mc mc
python-apsw python-apsw
python-flake8 python-flake8
python-jedi python-jedi
python-pip python-pip
python3-flake8 python3-flake8
python3-jedi python3-jedi
silversearcher-ag silversearcher-ag
vim-gtk-py2" vim-gtk-py2)
fi fi
# 2. install tools # 2. install tools
sudo apt install -y $PGS sudo apt install -y "${PGS[@]}"
# 3. cleanup # 3. cleanup
sudo apt-get autoremove -y && sudo apt-get autoclean -y sudo apt-get autoremove -y && sudo apt-get autoclean -y
@@ -65,19 +64,25 @@ sudo pip install remote_pdb rainbow
cp .bash_prompt ~/ cp .bash_prompt ~/
cp .tmux.conf ~/ cp .tmux.conf ~/
# v and y like vi in copy-mode # v and y like vi in copy-mode
echo "bind-key -T copy-mode-vi 'v' send -X begin-selection" >> ~/.tmux.conf {
echo "bind-key -T copy-mode-vi 'y' send -X copy-selection" >> ~/.tmux.conf echo "bind-key -T copy-mode-vi 'v' send -X begin-selection"
echo "bind-key -T copy-mode-vi 'y' send -X copy-selection"
} >> ~/.tmux.conf
cp .gitconfig ~/ cp .gitconfig ~/
cp cleanup.sh ~/ cp cleanup.sh ~/
echo '. ~/.bash_prompt' >> ~/.bashrc {
echo "alias ip='ip -c'" >> ~/.bashrc echo 'source ~/.bash_prompt'
echo "alias ip='ip -c'"
echo "alias skctl='kubectl -n kube-system'"
echo "source ~/devstack openrc admin admin >/dev/null 2>/dev/null'"
} >> ~/.bashrc
# 7. get my vim config # 7. get my vim config
git clone https://github.com/gryf/.vim ~/.vim git clone https://github.com/gryf/.vim ~/.vim
# populate plugins # populate plugins
vim -c ':PlugUpdate' -c ':qa!' ${STACKUSER} vim -c ':PlugUpdate' -c ':qa!'
# showmarks is a stubborn one # showmarks is a stubborn one
mkdir ~/.vim/bundle/ShowMarks/doc ${STACKUSER} mkdir ~/.vim/bundle/ShowMarks/doc
# clone devstack # clone devstack
git clone https://opendev.org/openstack/devstack ~/devstack git clone https://opendev.org/openstack/devstack ~/devstack