Skip to content

Instantly share code, notes, and snippets.

@gitawego
Last active October 12, 2020 19:42
Show Gist options
  • Select an option

  • Save gitawego/4e23f0754bbcd23617105833a35a274d to your computer and use it in GitHub Desktop.

Select an option

Save gitawego/4e23f0754bbcd23617105833a35a274d to your computer and use it in GitHub Desktop.
termux env preparation
#!/bin/bash
set -e
pkg upgrade -y
pkg install wget curl git nodejs-current vim
#install yarn
curl -o- -L https://yarnpkg.com/install.sh | bash
echo "export PATH=$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH" >> ~/.bashrc
. ~/.bashrc
# install pathogen
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
# Install tsuquyomi
git clone https://github.com/Quramy/tsuquyomi.git ~/.vim/bundle/tsuquyomi
# install typescript-vm for syntax highlight
git clone https://github.com/leafgarland/typescript-vim.git ~/.vim/bundle/typescript-vim
#install vim-js-pretty-template
git clone https://github.com/Quramy/vim-js-pretty-template.git ~/.vim/bundle/vim-js-pretty-template
#install theme
git clone https://github.com/NLKNguyen/papercolor-theme ~/.vim/bundle/papercolor-theme
# install file manager: NERDTree
git clone https://github.com/scrooloose/nerdtree.git ~/.vim/bundle/nerdtree
git clone https://github.com/Xuyuanp/nerdtree-git-plugin.git ~/.vim/bundle/nerdtree-git-plugin
echo -e "
execute pathogen#infect()
syntax on
filetype plugin indent on
set background=dark
colorscheme PaperColor
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif
" >> ~/.vimrc
# install typescript
yarn global add typescript
# enable storage
termux-setup-storage
@gitawego
Copy link
Copy Markdown
Author

gitawego commented Apr 14, 2018

execute this in termux:

curl -o- -L https://goo.gl/xC4oBD | bash

@LuisFellp
Copy link
Copy Markdown

termux says "Package 'nodejs-current' has no installation candidate" when executing the command and the .sh file. i "fixed" removing the "-current" in the line 5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment