Skip to content

Instantly share code, notes, and snippets.

@pyaillet
Last active May 27, 2019 20:27
Show Gist options
  • Save pyaillet/f5492750c64dbf5445f58cf4dd2e8d88 to your computer and use it in GitHub Desktop.
Save pyaillet/f5492750c64dbf5445f58cf4dd2e8d88 to your computer and use it in GitHub Desktop.

Revisions

  1. pyaillet revised this gist May 27, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -16,11 +16,11 @@ chown -R $USER:$USER $USER_HOME/.local
    curl -o $USER_HOME/.config/nvim/init.vim --create-dirs https://raw.githubusercontent.com/charlyx/vim-config/master/init.vim
    chown -R $USER:$USER $USER_HOME/.config

    sed -i -e 's/colorscheme/#colorscheme/' $USER_HOME/.config/nvim/init.vim
    sed -i -e 's/colorscheme/" colorscheme/' $USER_HOME/.config/nvim/init.vim

    sudo -u pyaillet -H nvim +PlugInstall +qall

    sed -i -e 's/#colorscheme/colorscheme/' $USER_HOME/.config/nvim/init.vim
    sed -i -e 's/" colorscheme/colorscheme/' $USER_HOME/.config/nvim/init.vim

    # Setup golang

  2. pyaillet revised this gist May 27, 2019. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,11 @@ chown -R $USER:$USER $USER_HOME/.local
    curl -o $USER_HOME/.config/nvim/init.vim --create-dirs https://raw.githubusercontent.com/charlyx/vim-config/master/init.vim
    chown -R $USER:$USER $USER_HOME/.config

    sudo -u pyaillet -H nvim +PlugInstall +qall --headless -es
    sed -i -e 's/colorscheme/#colorscheme/' $USER_HOME/.config/nvim/init.vim

    sudo -u pyaillet -H nvim +PlugInstall +qall

    sed -i -e 's/#colorscheme/colorscheme/' $USER_HOME/.config/nvim/init.vim

    # Setup golang

  3. pyaillet revised this gist May 27, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ chown -R $USER:$USER $USER_HOME/.local
    curl -o $USER_HOME/.config/nvim/init.vim --create-dirs https://raw.githubusercontent.com/charlyx/vim-config/master/init.vim
    chown -R $USER:$USER $USER_HOME/.config

    sudo -u pyaillet -H nvim +PlugInstall +qall
    sudo -u pyaillet -H nvim +PlugInstall +qall --headless -es

    # Setup golang

  4. pyaillet revised this gist May 27, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -16,7 +16,7 @@ chown -R $USER:$USER $USER_HOME/.local
    curl -o $USER_HOME/.config/nvim/init.vim --create-dirs https://raw.githubusercontent.com/charlyx/vim-config/master/init.vim
    chown -R $USER:$USER $USER_HOME/.config

    sudo pyaillet nvim +PlugInstall +qall
    sudo -u pyaillet -H nvim +PlugInstall +qall

    # Setup golang

  5. pyaillet revised this gist May 23, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@ sudo pyaillet nvim +PlugInstall +qall
    # Setup golang

    mkdir -p $USER_HOME/go
    chown -R $USER:$USER $USER_HOME/.local/share/nvim/site/autoload/plug.vim
    chown -R $USER:$USER $USER_HOME/go

    cat <<EOF >> $USER_HOME/.bashrc
    export GOPATH="$USER_HOME/go"
  6. pyaillet revised this gist May 23, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -11,10 +11,10 @@ useradd -d $USER_HOME -m -g $USER -G adm,dialout,cdrom,floppy,audio,dip,video,pl

    # Setup neovim
    curl -fLo $USER_HOME/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    chown -R $USER:$USER $USER_HOME/.local/share/nvim/site/autoload/plug.vim
    chown -R $USER:$USER $USER_HOME/.local

    curl -o $USER_HOME/.config/nvim/init.vim --create-dirs https://raw.githubusercontent.com/charlyx/vim-config/master/init.vim
    chown -R $USER:$USER $USER_HOME/.config/nvim/init.vim
    chown -R $USER:$USER $USER_HOME/.config

    sudo pyaillet nvim +PlugInstall +qall

  7. pyaillet revised this gist May 23, 2019. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -6,8 +6,8 @@ apt install -y python3 python3-pip neovim docker.io golang

    USER="pyaillet"
    USER_HOME="/home/$USER"
    groupadd $USER || true
    useradd -d $USER_HOME -m -g $USER -G adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lxd,ubuntu,google-sudoers $USER || true
    groupadd $USER
    useradd -d $USER_HOME -m -g $USER -G adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lxd,ubuntu,google-sudoers $USER

    # Setup neovim
    curl -fLo $USER_HOME/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  8. pyaillet revised this gist May 23, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -21,6 +21,8 @@ sudo pyaillet nvim +PlugInstall +qall
    # Setup golang

    mkdir -p $USER_HOME/go
    chown -R $USER:$USER $USER_HOME/.local/share/nvim/site/autoload/plug.vim

    cat <<EOF >> $USER_HOME/.bashrc
    export GOPATH="$USER_HOME/go"
    export PATH="\$PATH:\$GOPATH/bin"
  9. pyaillet revised this gist May 23, 2019. 1 changed file with 3 additions and 7 deletions.
    10 changes: 3 additions & 7 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -7,17 +7,13 @@ apt install -y python3 python3-pip neovim docker.io golang
    USER="pyaillet"
    USER_HOME="/home/$USER"
    groupadd $USER || true
    useradd -d $USER_HOME -m -g $USER \
    -G adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lxd,ubuntu,google-sudoers \
    $USER || true
    useradd -d $USER_HOME -m -g $USER -G adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lxd,ubuntu,google-sudoers $USER || true

    # Setup neovim
    curl -fLo $USER_HOME/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    curl -fLo $USER_HOME/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    chown -R $USER:$USER $USER_HOME/.local/share/nvim/site/autoload/plug.vim

    curl -o $USER_HOME/.config/nvim/init.vim --create-dirs \
    https://raw.githubusercontent.com/charlyx/vim-config/master/init.vim
    curl -o $USER_HOME/.config/nvim/init.vim --create-dirs https://raw.githubusercontent.com/charlyx/vim-config/master/init.vim
    chown -R $USER:$USER $USER_HOME/.config/nvim/init.vim

    sudo pyaillet nvim +PlugInstall +qall
  10. pyaillet revised this gist May 23, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -14,11 +14,13 @@ useradd -d $USER_HOME -m -g $USER \
    # Setup neovim
    curl -fLo $USER_HOME/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    chown -R $USER:$USER $USER_HOME/.local/share/nvim/site/autoload/plug.vim

    curl -o $USER_HOME/.config/nvim/init.vim --create-dirs \
    https://raw.githubusercontent.com/charlyx/vim-config/master/init.vim
    chown -R $USER:$USER $USER_HOME/.config/nvim/init.vim

    nvim +PlugInstall +qall
    sudo pyaillet nvim +PlugInstall +qall

    # Setup golang

  11. pyaillet revised this gist May 23, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -15,7 +15,7 @@ useradd -d $USER_HOME -m -g $USER \
    curl -fLo $USER_HOME/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

    curl -o $USER_HOME/.local/share/nvim/init.vim --create-dirs \
    curl -o $USER_HOME/.config/nvim/init.vim --create-dirs \
    https://raw.githubusercontent.com/charlyx/vim-config/master/init.vim

    nvim +PlugInstall +qall
  12. pyaillet revised this gist May 23, 2019. 1 changed file with 7 additions and 6 deletions.
    13 changes: 7 additions & 6 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -5,25 +5,26 @@ apt update
    apt install -y python3 python3-pip neovim docker.io golang

    USER="pyaillet"
    USER_HOME="/home/$USER"
    groupadd $USER || true
    useradd -d /home/$USER -m -g $USER \
    useradd -d $USER_HOME -m -g $USER \
    -G adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lxd,ubuntu,google-sudoers \
    $USER || true

    # Setup neovim
    curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    curl -fLo $USER_HOME/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

    curl -o ~/.local/share/nvim/init.vim --create-dirs \
    curl -o $USER_HOME/.local/share/nvim/init.vim --create-dirs \
    https://raw.githubusercontent.com/charlyx/vim-config/master/init.vim

    nvim +PlugInstall +qall

    # Setup golang

    mkdir -p /home/$USER/go
    cat <<EOF >> /home/$USER/.bashrc
    export GOPATH="/home/$USER/go"
    mkdir -p $USER_HOME/go
    cat <<EOF >> $USER_HOME/.bashrc
    export GOPATH="$USER_HOME/go"
    export PATH="\$PATH:\$GOPATH/bin"
    alias nv=nvim
    EOF
  13. pyaillet revised this gist May 23, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -28,6 +28,6 @@ export PATH="\$PATH:\$GOPATH/bin"
    alias nv=nvim
    EOF

    usermod -a -G docker
    usermod -a -G docker $USER

    wall "*** Init done ! ***"
  14. pyaillet revised this gist May 23, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ nvim +PlugInstall +qall
    mkdir -p /home/$USER/go
    cat <<EOF >> /home/$USER/.bashrc
    export GOPATH="/home/$USER/go"
    export PATH="$PATH:$GOPATH/bin"
    export PATH="\$PATH:\$GOPATH/bin"
    alias nv=nvim
    EOF

  15. pyaillet revised this gist May 23, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -24,7 +24,7 @@ nvim +PlugInstall +qall
    mkdir -p /home/$USER/go
    cat <<EOF >> /home/$USER/.bashrc
    export GOPATH="/home/$USER/go"
    export PATH="$$PATH:$$GOPATH/bin"
    export PATH="$PATH:$GOPATH/bin"
    alias nv=nvim
    EOF

  16. pyaillet revised this gist May 23, 2019. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -5,9 +5,10 @@ apt update
    apt install -y python3 python3-pip neovim docker.io golang

    USER="pyaillet"
    groupadd $USER
    groupadd $USER || true
    useradd -d /home/$USER -m -g $USER \
    -G adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lxd,ubuntu,google-sudoers
    -G adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lxd,ubuntu,google-sudoers \
    $USER || true

    # Setup neovim
    curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
  17. pyaillet revised this gist May 23, 2019. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -27,4 +27,6 @@ export PATH="$$PATH:$$GOPATH/bin"
    alias nv=nvim
    EOF

    usermod -a -G docker
    usermod -a -G docker

    wall "*** Init done ! ***"
  18. pyaillet revised this gist May 23, 2019. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ apt install -y python3 python3-pip neovim docker.io golang
    USER="pyaillet"
    groupadd $USER
    useradd -d /home/$USER -m -g $USER \
    -G adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lxd,ubuntu,google-sudoers,docker
    -G adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lxd,ubuntu,google-sudoers

    # Setup neovim
    curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    @@ -25,4 +25,6 @@ cat <<EOF >> /home/$USER/.bashrc
    export GOPATH="/home/$USER/go"
    export PATH="$$PATH:$$GOPATH/bin"
    alias nv=nvim
    EOF
    EOF

    usermod -a -G docker
  19. pyaillet revised this gist May 23, 2019. 1 changed file with 9 additions and 6 deletions.
    15 changes: 9 additions & 6 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -4,8 +4,11 @@
    apt update
    apt install -y python3 python3-pip neovim docker.io golang

    usermod -a -G docker pyaillet

    USER="pyaillet"
    groupadd $USER
    useradd -d /home/$USER -m -g $USER \
    -G adm,dialout,cdrom,floppy,audio,dip,video,plugdev,netdev,lxd,ubuntu,google-sudoers,docker

    # Setup neovim
    curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
    @@ -17,9 +20,9 @@ nvim +PlugInstall +qall

    # Setup golang

    mkdir -p /home/pyaillet/go
    cat <<EOF >> ~/.bashrc
    export GOPATH="/home/pyaillet/go"
    export PATH="$PATH:$GOPATH/bin"
    mkdir -p /home/$USER/go
    cat <<EOF >> /home/$USER/.bashrc
    export GOPATH="/home/$USER/go"
    export PATH="$$PATH:$$GOPATH/bin"
    alias nv=nvim
    EOF
  20. pyaillet revised this gist May 23, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.sh
    Original file line number Diff line number Diff line change
    @@ -18,7 +18,7 @@ nvim +PlugInstall +qall
    # Setup golang

    mkdir -p /home/pyaillet/go
    cat <<EOF > ~/.bashrc
    cat <<EOF >> ~/.bashrc
    export GOPATH="/home/pyaillet/go"
    export PATH="$PATH:$GOPATH/bin"
    alias nv=nvim
  21. pyaillet revised this gist May 23, 2019. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -4,6 +4,8 @@
    apt update
    apt install -y python3 python3-pip neovim docker.io golang

    usermod -a -G docker pyaillet

    # Setup neovim
    curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  22. pyaillet created this gist May 23, 2019.
    23 changes: 23 additions & 0 deletions setup.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,23 @@
    #!/usr/bin/env sh

    # Install
    apt update
    apt install -y python3 python3-pip neovim docker.io golang

    # Setup neovim
    curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
    https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim

    curl -o ~/.local/share/nvim/init.vim --create-dirs \
    https://raw.githubusercontent.com/charlyx/vim-config/master/init.vim

    nvim +PlugInstall +qall

    # Setup golang

    mkdir -p /home/pyaillet/go
    cat <<EOF > ~/.bashrc
    export GOPATH="/home/pyaillet/go"
    export PATH="$PATH:$GOPATH/bin"
    alias nv=nvim
    EOF