Skip to content

Instantly share code, notes, and snippets.

@amitavaghosh1
Last active August 8, 2022 07:20
Show Gist options
  • Save amitavaghosh1/6031739fc72b7076002e9d9c4b2f932a to your computer and use it in GitHub Desktop.
Save amitavaghosh1/6031739fc72b7076002e9d9c4b2f932a to your computer and use it in GitHub Desktop.
ECS Remote Necessary installs
unbind C-b
set -g prefix C-z
bind C-z send-prefix
bind-key C-z last-window
set -g default-terminal "screen-256color"
set -g aggressive-resize on
set -g base-index 1
set -g mouse on
set -g bell-action none
setw -g mode-keys vi
bind Escape copy-mode
bind p paste-buffer
bind-key v split-window -h -c '#{pane_current_path}'
bind-key s split-window -v -c '#{pane_current_path}'
bind n new-window
bind x kill-pane
bind k kill-window
bind q kill-session
bind r source-file ~/.tmux.conf
bind t select-layout tiled
set -g status "on"
set -g status-bg "colour236"
set -g status-justify "left"
set -g status-position "top"
set -g status-left-length "100"
set -g status-right-length "100"
set -g status-left "#{prefix_highlight}#[fg=colour22,bg=colour148,bold] #S #[fg=colour148,bg=colour236,nobold,nounderscore,noitalics]"
set -g status-right "#[fg=colour240,bg=colour236,nobold,nounderscore,noitalics]#[fg=colour250,bg=colour240] %Y-%m-%d %H:%M #[fg=colour252,bg=colour240,nobold,nounderscore,noitalics]#[fg=colour241,bg=colour252] #h "
setw -g window-status-separator ""
setw -g window-status-format "#[fg=colour245,bg=colour236] #I #[fg=colour245,bg=colour236]#W "
setw -g window-status-current-format "#[fg=colour236,bg=colour240,nobold,nounderscore,noitalics]#[fg=colour231,bg=colour240] #I #[fg=colour231,bg=colour240]#{?window_zoomed_flag,#[fg=green][],}#W #[fg=colour240,bg=colour236,nobold,nounderscore,noitalics]"
set nocompatible
set backspace=indent,eol,start
set modelines=0
set mouse=r
set expandtab
set tabstop=2
set shiftwidth=2
set softtabstop=2
set textwidth=78
set fo=crq
set autoindent
set ruler
set nowrap
set laststatus=2
set encoding=utf-8
set showmatch
set showcmd
set wildmode=list:longest,full
set incsearch
set infercase
set ignorecase
set smartcase
set hlsearch
set ttyfast
set lazyredraw
set cursorline
set listchars=eol:$,tab:>-,trail:-,extends:>,precedes:<
filetype plugin on
filetype indent on
syntax enable
set background=dark
set t_Co=256
colorscheme desert
highlight clear SignColumn
highlight RedundantSpaces ctermbg=red
match RedundantSpaces /\s\+$\| \+\ze\t\|\t/
set number
set scrolloff=5
set hidden
set nobackup
set pastetoggle=<F2>
autocmd BufWritePre * :%s/\s\+$//e
sudo yum -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum install nc tmux vim ngrep -y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment