start new:
tmux
start new with session name:
tmux new -s myname
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| VIMRC_RAW_URL="https://gist.githubusercontent.com/saikrn112/b55bf8a8bad6f6538a40561bdafe45bc/raw/.vimrc" | |
| ZIMRC_COMPONENTS_URL="https://gist.githubusercontent.com/saikrn112/1e353283a091824bb0074c7aafe203fe/raw/zimrc-components" | |
| ALIAS_URL="https://gist.githubusercontent.com/saikrn112/b9d16ad838fc240fe7370697039eb56c/raw/alias.sh" | |
| need(){ command -v "$1" >/dev/null 2>&1; } | |
| fetch(){ curl -fsSL "$1"; } |
| alias lt='ls -lrth' | |
| alias gs='git status' | |
| alias ga='git add' | |
| alias gc='git commit' | |
| alias gco='git checkout' | |
| alias gcf='git clean -fd' | |
| alias gb='git branch' | |
| alias gcfo='git checkout . && git clean -df' | |
| alias gd='git diff' | |
| alias gg='git graph' |
| mkdir -p ~/miniconda3 | |
| wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh | |
| bash ~/miniconda3/miniconda.sh -b -u -p ~/miniconda3 | |
| rm -rf ~/miniconda3/miniconda.sh | |
| ~/miniconda3/bin/conda init bash | |
| ~/miniconda3/bin/conda init zsh |
| source ~/miniconda3/etc/profile.d/conda.sh | |
| conda create -n CV | |
| conda activate CV | |
| conda install python=3.6 -y | |
| conda install matplotlib -y | |
| conda install numpy -y | |
| conda install opencv -y | |
| conda install jupyter -y | |
| conda install -c conda-forge termcolor -y | |
| conda install -c conda-forge ipywidgets -y |
| zmodule prompt-pwd | |
| zmodule gitster | |
| zmodule sorin | |
| zmodule environment | |
| zmodule completion | |
| zmodule input | |
| zmodule fzf |
| " ================================ | |
| " vim-plug bootstrap | |
| " ================================ | |
| if empty(glob('~/.vim/autoload/plug.vim')) | |
| silent !mkdir -p ~/.vim/autoload | |
| silent !curl -fsSLo ~/.vim/autoload/plug.vim https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
| autocmd VimEnter * PlugInstall --sync | source $MYVIMRC | |
| endif | |
| call plug#begin('~/.vim/plugged') |
| # 0 is too far from ` ;) | |
| set -g base-index 1 | |
| # Automatically set window title | |
| set-window-option -g automatic-rename on | |
| set-option -g set-titles on | |
| #set -g default-terminal screen-256color | |
| set -g status-keys vi | |
| set -g history-limit 10000 |