Compare commits

...

3 Commits

Author SHA1 Message Date
Ray Elliott 17255dea08 replace hardcoded user name 2020-03-20 14:20:49 +00:00
Ray Elliott d3d38a32b5 install python modules. install plugins. 2020-03-20 14:17:49 +00:00
Ray Elliott a4ac428955 set system locale 2020-03-20 13:41:27 +00:00
4 changed files with 29 additions and 11 deletions

View File

@ -17,8 +17,8 @@ if [ -h .tmux ] ; then
elif [ -f .tmux ] ; then
mv .tmux .tmux.backup
fi
su ray -c 'git clone https://git.rayelliott.dev/dots/tmux.git .config/tmux'
su ray -c 'ln -bfs .config/tmux/tmux.conf .tmux.conf'
su ray -c 'ln -bfs .config/tmux/tmux .tmux'
su "$_user" -c 'git clone https://git.rayelliott.dev/dots/tmux.git .config/tmux'
su "$_user" -c 'ln -bfs .config/tmux/tmux.conf .tmux.conf'
su "$_user" -c 'ln -bfs .config/tmux/tmux .tmux'
cd .config/tmux
ln -bfs tmux.colours-base16.conf tmux.colours.conf

View File

@ -13,12 +13,12 @@ fi
mkdir -p /home/"$_user"/.config
cd /home/"$_user"
rm -Rf .config/zsh
su ray -c 'git clone https://git.rayelliott.dev/dots/zsh.git .config/zsh'
su ray -c 'git clone https://github.com/tarjoilija/zgen.git .config/zsh/zgen'
su ray -c 'ln -bfs .config/zsh/zshrc .zshrc'
su "$_user" -c 'git clone https://git.rayelliott.dev/dots/zsh.git .config/zsh'
su "$_user" -c 'git clone https://github.com/tarjoilija/zgen.git .config/zsh/zgen'
su "$_user" -c 'ln -bfs .config/zsh/zshrc .zshrc'
# set interactive shell
_zsh=$(command -v zsh)
if [ -f "$_zsh" ] ; then
chsh ray -s "$_zsh"
chsh "$_user" -s "$_zsh"
fi

View File

@ -8,12 +8,13 @@ if ! command -v yarn ; then
fi
if command -v apt-get ; then
apt-get -y install ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip
apt-get -y install ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip python-pip python3-pip golang
cd /tmp
git clone https://github.com/neovim/neovim
cd neovim
make CMAKE_BUILD_TYPE=Release
mv /tmp/neovim/runtime /usr/local/share/nvim
mkdir -p /usr/local/share/nvim
mv /tmp/neovim/runtime /usr/local/share/nvim/runtime
mv /tmp/neovim/build/bin/nvim /usr/local/bin/nvim
else
echo "Error - no package installer found."
@ -23,6 +24,11 @@ fi
mkdir -p /home/"$_user"/.config
cd /home/"$_user"
rm -Rf .config/nvim
su ray -c 'git clone https://git.rayelliott.dev/dots/nvim.git .config/nvim'
su "$_user" -c 'git clone https://git."$_user"elliott.dev/dots/nvim.git .config/nvim'
su ray --login -c 'yarn global add neovim'
su "$_user" --login -c 'yarn global add neovim'
su "$_user" --login -c 'python2 -m pip install --user --upgrade pynvim'
su "$_user" --login -c 'python3 -m pip install --user --upgrade pynvim'
su "$_user" --login -c 'nvim --headless +PlugInstall +qall'

12
system.sh Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -e
# locale
if [ -f /etc/locale.gen ] && command -v locale-gen ; then
echo 'en_GB.UTF-8 UTF-8' > /etc/locale.gen
locale-gen
echo 'LANG="en_GB.UTF-8"' > /etc/default/locale
else
echo 'system.sh: Warning can not set locale'
fi