-
Install
~/.ssh/timnolte_id_rsa
-
git init
-
git remote add origin git@github.com:timnolte/.shell.git
-
GIT_SSH_COMMAND="ssh -i ~/.ssh/timnolte_id_rsa" git fetch
-
Backup Current Home
mkdir backup
cp -R .* ./backup/
-
git checkout master
-
mkdir workspace
$ ~/.config/dev-shell/setup.sh`
$ sudo apt install net-tools tree wget curl procps mlocate man gettext \
ccrypt gnupg2 gnupg-agent \
grep bash-completion \
git subversion php-cli python python-pip python-dev \
python3 python3-pip python3-dev ruby ruby-dev golang make \
ninja-build gettext libtool libtool-bin autoconf automake cmake \
g++ pkg-config unzip xsel editorconfig gdb \
rclone \
software-properties-common \
python-pip python-setuptools python-setuptools-git \
ca-certificates apt-transport-https \
snapd \
build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev \
libsqlite3-dev llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libgdbm-dev liblzma-dev uuid-dev \
libnotify4 libnspr4 libnss3 libxkbfile1 libsecret-common libsecret-1-0
$ sudo apt install fuse2 squashfs-tools libfuse-dev libattr1 libattr1-dev \
zlib1g zlib1g-dev udev
./autogen.sh
./configure
make
sudo make install
sudo ldconfig
$ sudo chmod 755 /
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python2 27
$ sudo update-alternatives --install /usr/bin/python3 python3 /usr/local/bin/python3.7 37
$ sudo update-alternatives --install /usr/bin/python python /usr/bin/python3 37
$ sudo update-alternatives --install /usr/bin/python3m-config python3-config /usr/local/bin/python3.7-config 37
$ sudo update-alternatives --install /usr/bin/python3m python3m /usr/local/bin/python3.7m 37
$ sudo update-alternatives --install /usr/bin/python3m-config python3m-config /usr/local/bin/python3.7m-config 37
$ sudo mv /usr/bin/pip /usr/bin/pip.bak
$ sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip2 27
$ sudo update-alternatives --install /usr/bin/pip3 pip3 /usr/local/bin/pip3.7 37
$ sudo update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 37
Instead of installing a system package it is more flexible to install NVM and use a user-based NodeJS/NPM.
cd workspace/
mkdir ~/.nvm
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.36.0/install.sh | bash
$ npm install
$ sudo apt install ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip xsel editorconfig
cd workspace/
git clone git@github.com:neovim/neovim.git
cd neovim
git checkout v<latest version tag>
make CMAKE_BUILD_TYPE=Release
sudo make install
NOTE: For a user-managed configuration add items to
.bash_aliases
instead of changing the system defaults.
# vim && neovim
# clean the vim swap file
alias nvimc='rm -I ~/nvim/swap/*'
alias nvimcu='rm -I ~/nvim/undo/*'
alias vim='nvim'
alias vi='nvim'
alias editor='nvim'
alias vimdiff='nvim -d'
$ sudo update-alternatives --install /usr/bin/vi vi /usr/bin/nvim 60
$ sudo update-alternatives --install /usr/bin/vim vim /usr/bin/nvim 60
$ sudo update-alternatives --install /usr/bin/editor editor /usr/bin/nvim 60
cd workspace/
git clone git@github.com:timnolte/neovim-ide-setup.git
cd neovim-ide-setup
./setup.sh
sudo pip2 install --upgrade neovim
sudo pip3 install --upgrade neovim
sudo gem install neovim
npm install -g neovim
nvim
:PlugUpdate
:UpdateRemotePlugins
curl -L "https://go.microsoft.com/fwlink/?LinkID=760868" > ~/.tmp/vscode.deb
sudo dpkg -i ~/.tmp/vscode.deb
sudo snap install phpstorm --classic