Added all dotfiles
This commit is contained in:
12
bash/.bash_profile
Normal file
12
bash/.bash_profile
Normal file
@@ -0,0 +1,12 @@
|
||||
# .bash_profile
|
||||
|
||||
# Get the aliases and functions
|
||||
if [ -f ~/.bashrc ]; then
|
||||
. ~/.bashrc
|
||||
fi
|
||||
|
||||
# User specific environment and startup programs
|
||||
|
||||
PATH=$PATH:$HOME/.local/bin:$HOME/bin
|
||||
|
||||
export PATH
|
||||
21
bash/.bashrc
Normal file
21
bash/.bashrc
Normal file
@@ -0,0 +1,21 @@
|
||||
# .bashrc
|
||||
|
||||
# Source global definitions
|
||||
if [ -f /etc/bashrc ]; then
|
||||
. /etc/bashrc
|
||||
fi
|
||||
|
||||
# Uncomment the following line if you don't like systemctl's auto-paging feature:
|
||||
# export SYSTEMD_PAGER=
|
||||
|
||||
# User specific aliases and functions
|
||||
alias l.='ls -lh --color=auto' 2>/dev/null
|
||||
alias l='ls -lh'
|
||||
alias ll='ls -lh'
|
||||
set -o vi
|
||||
|
||||
#golang stuff
|
||||
export GOPATH=$HOME/gopath
|
||||
export PATH=$GOPATH:$GOPATH/bin:$PATH
|
||||
|
||||
export EDITOR=/usr/bin/vim
|
||||
61
conky/.config/conky/conky.conf
Normal file
61
conky/.config/conky/conky.conf
Normal file
@@ -0,0 +1,61 @@
|
||||
-- vim: ts=4 sw=4 noet ai cindent syntax=lua
|
||||
--[[
|
||||
Conky, a system monitor, based on torsmo
|
||||
|
||||
Any original torsmo code is licensed under the BSD license
|
||||
|
||||
All code written since the fork of torsmo is licensed under the GPL
|
||||
|
||||
Please see COPYING for details
|
||||
|
||||
Copyright (c) 2004, Hannu Saransaari and Lauri Hakkarainen
|
||||
Copyright (c) 2005-2012 Brenden Matthews, Philip Kovacs, et. al. (see AUTHORS)
|
||||
All rights reserved.
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
]]
|
||||
|
||||
conky.config = {
|
||||
own_window = true,
|
||||
background = false,
|
||||
cpu_avg_samples = 2,
|
||||
default_color = 'white',
|
||||
default_outline_color = 'white',
|
||||
default_shade_color = 'white',
|
||||
draw_borders = false,
|
||||
draw_graph_borders = true,
|
||||
draw_outline = false,
|
||||
draw_shades = false,
|
||||
use_xft = true,
|
||||
font = 'Terminus',
|
||||
gap_x = 5,
|
||||
gap_y = 60,
|
||||
minimum_height = 5,
|
||||
minimum_width = 5,
|
||||
net_avg_samples = 2,
|
||||
no_buffers = true,
|
||||
out_to_console = true,
|
||||
out_to_x = false,
|
||||
out_to_stderr = false,
|
||||
extra_newline = false,
|
||||
stippled_borders = 0,
|
||||
update_interval = 1.0,
|
||||
uppercase = false,
|
||||
use_spacer = 'none',
|
||||
show_graph_scale = false,
|
||||
show_graph_range = false
|
||||
}
|
||||
|
||||
conky.text = [[
|
||||
$loadavg | $mem | ${upspeedf enp4s0}/${downspeedf enp4s0} | ${time %H:%M} ${time %m.%d}
|
||||
]]
|
||||
15
tmux/.tmux.conf
Normal file
15
tmux/.tmux.conf
Normal file
@@ -0,0 +1,15 @@
|
||||
#change C-b to Ca
|
||||
unbind C-b
|
||||
set-option -g prefix C-a
|
||||
bind-key C-a send-prefix
|
||||
# split panes using | and -
|
||||
bind | split-window -h
|
||||
bind - split-window -v
|
||||
unbind '"'
|
||||
unbind %
|
||||
# enable mouse control (clickable windows, panes, resizable panes)
|
||||
# as of tmux 2.1 you can just do this ...
|
||||
set -g mouse on
|
||||
# stop tmux from renaming the window every time you run a command
|
||||
set-option -g allow-rename off
|
||||
set-option -g pane-active-border-fg blue
|
||||
1
vim/.vim/bundle/SimpylFold
Submodule
1
vim/.vim/bundle/SimpylFold
Submodule
Submodule vim/.vim/bundle/SimpylFold added at 9e7c1c9d9b
1
vim/.vim/bundle/Vundle.vim
Submodule
1
vim/.vim/bundle/Vundle.vim
Submodule
Submodule vim/.vim/bundle/Vundle.vim added at 88688fe453
1
vim/.vim/bundle/ctrlp.vim
Submodule
1
vim/.vim/bundle/ctrlp.vim
Submodule
Submodule vim/.vim/bundle/ctrlp.vim added at 564176f01d
1
vim/.vim/bundle/indentpython.vim
Submodule
1
vim/.vim/bundle/indentpython.vim
Submodule
Submodule vim/.vim/bundle/indentpython.vim added at 6aaddfde21
1
vim/.vim/bundle/nerdtree
Submodule
1
vim/.vim/bundle/nerdtree
Submodule
Submodule vim/.vim/bundle/nerdtree added at eee431dbd4
1
vim/.vim/bundle/python-mode
Submodule
1
vim/.vim/bundle/python-mode
Submodule
Submodule vim/.vim/bundle/python-mode added at f7ccee5474
1
vim/.vim/bundle/syntastic
Submodule
1
vim/.vim/bundle/syntastic
Submodule
Submodule vim/.vim/bundle/syntastic added at 78c0d21a9b
1
vim/.vim/bundle/vim-airline
Submodule
1
vim/.vim/bundle/vim-airline
Submodule
Submodule vim/.vim/bundle/vim-airline added at b56a064377
1
vim/.vim/bundle/vim-airline-themes
Submodule
1
vim/.vim/bundle/vim-airline-themes
Submodule
Submodule vim/.vim/bundle/vim-airline-themes added at 6026eb78bf
1
vim/.vim/bundle/vim-flake8
Submodule
1
vim/.vim/bundle/vim-flake8
Submodule
Submodule vim/.vim/bundle/vim-flake8 added at 91818a7d5f
1
vim/.vim/bundle/vim-fugitive
Submodule
1
vim/.vim/bundle/vim-fugitive
Submodule
Submodule vim/.vim/bundle/vim-fugitive added at b754bc2031
95
vim/.vimrc
Normal file
95
vim/.vimrc
Normal file
@@ -0,0 +1,95 @@
|
||||
set nocompatible
|
||||
filetype off
|
||||
|
||||
" general settings
|
||||
set encoding=utf-8
|
||||
let mapleader=","
|
||||
set nu
|
||||
set laststatus=2
|
||||
set hidden
|
||||
set incsearch
|
||||
|
||||
" Indent settings - this is for PEP8 compatibility
|
||||
set expandtab
|
||||
set autoindent
|
||||
set tabstop=4
|
||||
set softtabstop=4
|
||||
set textwidth=79
|
||||
set shiftwidth=4
|
||||
set fileformat=unix
|
||||
|
||||
set cursorline
|
||||
set showmatch
|
||||
let pythong_highlight_all = 1
|
||||
syntax on
|
||||
|
||||
set foldmethod=indent
|
||||
set foldlevel=99
|
||||
|
||||
" specify the location of the splits
|
||||
set splitbelow
|
||||
set splitright
|
||||
|
||||
" remap ctrl + hjkl to move between splits
|
||||
nnoremap <C-j> <C-W><C-J>
|
||||
nnoremap <C-k> <C-W><C-K>
|
||||
nnoremap <C-l> <C-W><C-L>
|
||||
nnoremap <C-h> <C-W><C-H>
|
||||
" use jj to escape insert mode
|
||||
inoremap jj <Esc>
|
||||
|
||||
nnoremap <leader>l :ls<CR>:b<Space>
|
||||
nnoremap <Tab> :bnext<CR>
|
||||
nnoremap <S-Tab> :bprev<CR>
|
||||
|
||||
nnoremap <leader>p :CtrlPBuffer<CR>
|
||||
nnoremap <space> za
|
||||
|
||||
" NERDTree
|
||||
map <C-n> :NERDTreeToggle<CR>
|
||||
|
||||
"airline - show buffers in the tabline if theres only one tab (always)
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
|
||||
" set the runtime path to include Vundle and initialize
|
||||
set rtp+=~/.vim/bundle/Vundle.vim
|
||||
call vundle#begin()
|
||||
" " let Vundle manage Vundle, required
|
||||
Plugin 'VundleVim/Vundle.vim'
|
||||
"
|
||||
Plugin 'tpope/vim-fugitive'
|
||||
Plugin 'kien/ctrlp.vim'
|
||||
Plugin 'scrooloose/nerdtree'
|
||||
Plugin 'tmhedberg/SimpylFold'
|
||||
Plugin 'vim-scripts/indentpython.vim'
|
||||
Plugin 'scrooloose/syntastic'
|
||||
" PEP8 checking plugin
|
||||
Plugin 'nvie/vim-flake8'
|
||||
"Plugin 'Lokaltog/powerline', {'rtp': 'powerline/bindings/vim/'}
|
||||
Plugin 'vim-airline/vim-airline'
|
||||
Plugin 'vim-airline/vim-airline-themes'
|
||||
"Plugin 'klen/python-mode'
|
||||
|
||||
call vundle#end() " required
|
||||
filetype plugin indent on " required
|
||||
" "
|
||||
" " Brief help
|
||||
" " :PluginList - lists configured plugins
|
||||
" " :PluginInstall - installs plugins; append `!` to update or just
|
||||
" :PluginUpdate
|
||||
" " :PluginSearch foo - searches for foo; append `!` to refresh local cache
|
||||
" " :PluginClean - confirms removal of unused plugins; append `!` to
|
||||
" auto-approve removal
|
||||
" "
|
||||
" " see :h vundle for more details or wiki for FAQ
|
||||
" " Put your non-Plugin stuff after this line
|
||||
|
||||
"python with virtualenv support
|
||||
py << EOF
|
||||
import os
|
||||
import sys
|
||||
if 'VIRTUAL_ENV' in os.environ:
|
||||
project_base_dir = os.environ['VIRTUAL_ENV']
|
||||
activate_this = os.path.join(project_base_dir, 'bin/activate_this.py')
|
||||
execfile(activate_this, dict(__file__=activate_this))
|
||||
EOF
|
||||
Reference in New Issue
Block a user