2018-03-14 17:09:38 +00:00
|
|
|
# `pSoxIzsh`
|
|
|
|
|
|
|
|
## About this
|
|
|
|
|
|
|
|
Over the years I have collect various bits from various locations. I often share what I have done with work colleagues and
|
|
|
|
finally made this repository so people can pull the latest. if you already have an installation cd to the `~/.psoxizsh`
|
|
|
|
directory and make sure you have not make any changes. If you have stash them and then run the following commands.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
(
|
|
|
|
git pull --recurse-submodules=yes
|
|
|
|
git submodule foreach git fetch --all --prune
|
|
|
|
git submodule foreach git checkout master
|
|
|
|
git submodule foreach git pull
|
2018-03-21 12:19:46 +00:00
|
|
|
git pull --recurse-submodules=yes
|
2018-03-14 17:09:38 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
src
|
|
|
|
|
|
|
|
```
|
2017-12-18 15:20:27 +00:00
|
|
|
|
|
|
|
## Install
|
|
|
|
|
|
|
|
```bash
|
2017-12-18 22:12:41 +00:00
|
|
|
git clone --recurse-submodules --recursive --config http.sslVerify=false https://bitbucket.org/pSox/psoxizsh.git ~/.psoxizsh
|
2017-12-18 15:27:22 +00:00
|
|
|
~/.psoxizsh/fresh-system
|
2017-12-18 15:20:27 +00:00
|
|
|
```
|
2017-12-18 22:12:41 +00:00
|
|
|
|
2017-12-18 23:10:43 +00:00
|
|
|
## Configure Vim
|
2017-12-18 22:12:41 +00:00
|
|
|
|
2018-03-14 17:09:38 +00:00
|
|
|
Make sure you have vim 8 installed and after starting zsh check that the following variable are set by typing
|
|
|
|
|
|
|
|
```bash
|
|
|
|
echo $VIMINIT
|
|
|
|
echo $MYVIMRC
|
|
|
|
echo $VIMHOME
|
|
|
|
```
|
|
|
|
|
|
|
|
Also check your `/etc/vimrc` or `/etc/vim/vimrc` to see if they do something funny. A good example of a
|
|
|
|
`vimrc` that can be appended to the end of the `vimrc` file off the `/etc` directory
|
|
|
|
can be found in `~/.psoxizsh/etc/`.
|
|
|
|
|
|
|
|
If these are not set try adding the following to the beginning of your `~/.zshrc` file.
|
|
|
|
|
|
|
|
```bash
|
|
|
|
export VIMINIT='source $MYVIMRC'
|
|
|
|
export MYVIMRC=$HOME/.psoxizsh/vimrc
|
|
|
|
export VIMHOME=$HOME/.psoxizsh/vim
|
|
|
|
```
|
|
|
|
|
|
|
|
Once these values are set in your environment you can start vim and type.
|
|
|
|
|
2017-12-18 23:10:43 +00:00
|
|
|
```viml
|
|
|
|
:PlugInstall
|
|
|
|
```
|
2018-03-14 17:09:38 +00:00
|
|
|
|
|
|
|
Exit vim and start again, if you get an error with the YouCompleteMe plugin, go to the
|
|
|
|
[You Complete Me](https://github.com/Valloric/YouCompleteMe#full-installation-guide)
|
|
|
|
page and see if you can fix it. Normally install a more complete version of vim will
|
|
|
|
solve the problem.
|
|
|
|
|
2018-03-21 12:19:46 +00:00
|
|
|
Enjoy
|