Last active
March 26, 2019 10:49
-
-
Save ryupold/50954a7e062bedd4f5cea0d1edad96a5 to your computer and use it in GitHub Desktop.
unix/linux config files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
config files for linux/unix systems |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unbind C-b | |
set -g prefix C-y | |
bind C-y send-prefix | |
set -s escape-time 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set nocompatible | |
filetype off | |
"### vim-plug #################################### | |
call plug#begin('$HOME/.vim/plugged') | |
Plug 'vim-airline/vim-airline' | |
Plug 'vim-airline/vim-airline-themes' | |
Plug 'easymotion/vim-easymotion' | |
Plug 'terryma/vim-smooth-scroll' | |
Plug 'mattn/gist-vim' | |
Plug 'mattn/webapi-vim' | |
"### IDEs ######################################## | |
"Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' } | |
"Plug 'rust-lang/rust.vim' | |
"Plug 'OmniSharp/omnisharp-vim' | |
call plug#end() | |
execute pathogen#infect() | |
"### Colors ###################################### | |
"set term=xterm | |
"set t_Co=256 | |
"let &t_AB="\e[48;5;%dm" | |
"let &t_AF="\e[38;5;%dm" | |
" https://github.com/michalbachowski/vim-wombat256mod | |
"colorscheme wombat256mod | |
"### Arduino ##################################### | |
au BufRead,BufNewFile *.pde set filetype=arduino | |
au BufRead,BufNewFile *.ino set filetype=arduino | |
au CursorHold,CursorHoldI * checktime | |
au FocusGained,BufEnter * :checktime | |
:set autoread | |
:set ttimeoutlen=100 | |
"### Copy & Paste ################################ | |
set clipboard=unnamedplus | |
set mouse=a | |
"### Keybindings ################################# | |
" Motion | |
let mapleader = " " | |
" F11 to toggle paste mode | |
map <F11> :set invpaste<CR> | |
set pastetoggle=<F11> | |
" Smooth Scroll | |
noremap <silent> <c-u> :call smooth_scroll#up(&scroll, 25, 2)<CR> | |
noremap <silent> <c-d> :call smooth_scroll#down(&scroll, 25, 2)<CR> | |
noremap <silent> <c-b> :call smooth_scroll#up(&scroll*2, 25, 4)<CR> | |
noremap <silent> <c-f> :call smooth_scroll#down(&scroll*2, 25, 4)<CR> | |
"### Editor ###################################### | |
" Gnome Terminal | |
"if has("autocmd") | |
" au VimEnter,InsertLeave * silent execute '!echo -ne "\e[1 q"' | redraw! | |
" au InsertEnter,InsertChange * | |
" \ if v:insertmode == 'i' | | |
" \ silent execute '!echo -ne "\e[5 q"' | redraw! | | |
" \ elseif v:insertmode == 'r' | | |
" \ silent execute '!echo -ne "\e[3 q"' | redraw! | | |
" \ endif | |
" au VimLeave * silent execute '!echo -ne "\e[ q"' | redraw! | |
"endif | |
" iTerm2 on macOS | |
"let &t_SI = "\<Esc>]50;CursorShape=1\x7" | |
"let &t_SR = "\<Esc>]50;CursorShape=2\x7" | |
"let &t_EI = "\<Esc>]50;CursorShape=0\x7" | |
filetype plugin indent on | |
syntax on | |
set nu |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in aliases prompt | |
source ~/.config/fish/inc/$file.fish | |
end | |
# OS-specific customizations | |
set osname (uname) | |
if [ $osname = 'Darwin' ] | |
source ~/.config/fish/inc/mac.fish | |
else if [ $osname = 'Linux' ] | |
source ~/.config/fish/inc/linux.fish | |
end | |
# initialize ruby env, see https://coderwall.com/p/hmousw | |
if command -s rbenv > /dev/null; | |
set -gx RBENV_ROOT $HOME/.rbenv | |
. (rbenv init -|psub) | |
end | |
# iTerm2 integration | |
[ -e ~/.iterm2_shell_integration.fish ]; and source ~/.iterm2_shell_integration.fish | |
# my stuff | |
alias p+="pushd" | |
alias p-="popd" | |
alias ls="ls -lah" | |
alias lsold="ls" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Use Non-ASCII Font" : false, | |
"Tags" : [ | |
], | |
"Ansi 12 Color" : { | |
"Green Component" : 0.3333333432674408, | |
"Red Component" : 0.3333333432674408, | |
"Blue Component" : 1 | |
}, | |
"Ansi 6 Color" : { | |
"Green Component" : 0.73333334922790527, | |
"Red Component" : 0, | |
"Blue Component" : 0.73333334922790527 | |
}, | |
"Normal Font" : "FiraCode-Retina 13", | |
"Bold Color" : { | |
"Green Component" : 1, | |
"Red Component" : 1, | |
"Blue Component" : 1 | |
}, | |
"Ansi 3 Color" : { | |
"Green Component" : 0.73333334922790527, | |
"Red Component" : 0.73333334922790527, | |
"Blue Component" : 0 | |
}, | |
"Custom Directory" : "No", | |
"Ansi 5 Color" : { | |
"Green Component" : 0, | |
"Red Component" : 0.73333334922790527, | |
"Blue Component" : 0.73333334922790527 | |
}, | |
"Rows" : 50, | |
"Default Bookmark" : "No", | |
"Cursor Guide Color" : { | |
"Red Component" : 0.70213186740875244, | |
"Color Space" : "sRGB", | |
"Blue Component" : 1, | |
"Alpha Component" : 0.25, | |
"Green Component" : 0.9268307089805603 | |
}, | |
"Non-ASCII Anti Aliased" : true, | |
"Use Bright Bold" : true, | |
"Ansi 10 Color" : { | |
"Green Component" : 1, | |
"Red Component" : 0.3333333432674408, | |
"Blue Component" : 0.3333333432674408 | |
}, | |
"Ambiguous Double Width" : false, | |
"Jobs to Ignore" : [ | |
"rlogin", | |
"ssh", | |
"slogin", | |
"telnet" | |
], | |
"Ansi 15 Color" : { | |
"Green Component" : 1, | |
"Red Component" : 1, | |
"Blue Component" : 1 | |
}, | |
"Foreground Color" : { | |
"Green Component" : 0.73333334922790527, | |
"Red Component" : 0.73333334922790527, | |
"Blue Component" : 0.73333334922790527 | |
}, | |
"Working Directory" : "\/Users\/michi", | |
"Blinking Cursor" : true, | |
"Disable Window Resizing" : true, | |
"Sync Title" : false, | |
"Prompt Before Closing 2" : 0, | |
"BM Growl" : true, | |
"Command" : "", | |
"Description" : "Default", | |
"Mouse Reporting" : true, | |
"Screen" : -1, | |
"Selection Color" : { | |
"Green Component" : 0.8353000283241272, | |
"Red Component" : 0.70980000495910645, | |
"Blue Component" : 1 | |
}, | |
"Only The Default BG Color Uses Transparency" : false, | |
"Columns" : 100, | |
"Idle Code" : 0, | |
"Ansi 13 Color" : { | |
"Green Component" : 0.3333333432674408, | |
"Red Component" : 1, | |
"Blue Component" : 1 | |
}, | |
"Custom Command" : "No", | |
"ASCII Anti Aliased" : true, | |
"Non Ascii Font" : "Monaco 12", | |
"Vertical Spacing" : 1, | |
"Use Bold Font" : true, | |
"Option Key Sends" : 0, | |
"Selected Text Color" : { | |
"Green Component" : 0, | |
"Red Component" : 0, | |
"Blue Component" : 0 | |
}, | |
"Background Color" : { | |
"Green Component" : 0, | |
"Red Component" : 0, | |
"Blue Component" : 0 | |
}, | |
"Character Encoding" : 4, | |
"Ansi 11 Color" : { | |
"Green Component" : 1, | |
"Red Component" : 1, | |
"Blue Component" : 0.3333333432674408 | |
}, | |
"Use Italic Font" : true, | |
"Unlimited Scrollback" : false, | |
"Keyboard Map" : { | |
"0xf700-0x260000" : { | |
"Text" : "[1;6A", | |
"Action" : 10 | |
}, | |
"0x37-0x40000" : { | |
"Text" : "0x1f", | |
"Action" : 11 | |
}, | |
"0x32-0x40000" : { | |
"Text" : "0x00", | |
"Action" : 11 | |
}, | |
"0xf709-0x20000" : { | |
"Text" : "[17;2~", | |
"Action" : 10 | |
}, | |
"0xf70c-0x20000" : { | |
"Text" : "[20;2~", | |
"Action" : 10 | |
}, | |
"0xf729-0x20000" : { | |
"Text" : "[1;2H", | |
"Action" : 10 | |
}, | |
"0xf72b-0x40000" : { | |
"Text" : "[1;5F", | |
"Action" : 10 | |
}, | |
"0xf705-0x20000" : { | |
"Text" : "[1;2Q", | |
"Action" : 10 | |
}, | |
"0xf703-0x260000" : { | |
"Text" : "[1;6C", | |
"Action" : 10 | |
}, | |
"0xf700-0x220000" : { | |
"Text" : "[1;2A", | |
"Action" : 10 | |
}, | |
"0xf701-0x280000" : { | |
"Text" : "0x1b 0x1b 0x5b 0x42", | |
"Action" : 11 | |
}, | |
"0x38-0x40000" : { | |
"Text" : "0x7f", | |
"Action" : 11 | |
}, | |
"0x33-0x40000" : { | |
"Text" : "0x1b", | |
"Action" : 11 | |
}, | |
"0xf703-0x220000" : { | |
"Text" : "[1;2C", | |
"Action" : 10 | |
}, | |
"0xf701-0x240000" : { | |
"Text" : "[1;5B", | |
"Action" : 10 | |
}, | |
"0xf70d-0x20000" : { | |
"Text" : "[21;2~", | |
"Action" : 10 | |
}, | |
"0xf702-0x260000" : { | |
"Text" : "[1;6D", | |
"Action" : 10 | |
}, | |
"0xf729-0x40000" : { | |
"Text" : "[1;5H", | |
"Action" : 10 | |
}, | |
"0xf706-0x20000" : { | |
"Text" : "[1;2R", | |
"Action" : 10 | |
}, | |
"0x34-0x40000" : { | |
"Text" : "0x1c", | |
"Action" : 11 | |
}, | |
"0xf700-0x280000" : { | |
"Text" : "0x1b 0x1b 0x5b 0x41", | |
"Action" : 11 | |
}, | |
"0x2d-0x40000" : { | |
"Text" : "0x1f", | |
"Action" : 11 | |
}, | |
"0xf70e-0x20000" : { | |
"Text" : "[23;2~", | |
"Action" : 10 | |
}, | |
"0xf702-0x220000" : { | |
"Text" : "[1;2D", | |
"Action" : 10 | |
}, | |
"0xf703-0x280000" : { | |
"Text" : "0x1b 0x1b 0x5b 0x43", | |
"Action" : 11 | |
}, | |
"0xf700-0x240000" : { | |
"Text" : "[1;5A", | |
"Action" : 10 | |
}, | |
"0xf707-0x20000" : { | |
"Text" : "[1;2S", | |
"Action" : 10 | |
}, | |
"0xf70a-0x20000" : { | |
"Text" : "[18;2~", | |
"Action" : 10 | |
}, | |
"0x35-0x40000" : { | |
"Text" : "0x1d", | |
"Action" : 11 | |
}, | |
"0xf70f-0x20000" : { | |
"Text" : "[24;2~", | |
"Action" : 10 | |
}, | |
"0xf703-0x240000" : { | |
"Text" : "[1;5C", | |
"Action" : 10 | |
}, | |
"0xf701-0x260000" : { | |
"Text" : "[1;6B", | |
"Action" : 10 | |
}, | |
"0xf702-0x280000" : { | |
"Text" : "0x1b 0x1b 0x5b 0x44", | |
"Action" : 11 | |
}, | |
"0xf72b-0x20000" : { | |
"Text" : "[1;2F", | |
"Action" : 10 | |
}, | |
"0x36-0x40000" : { | |
"Text" : "0x1e", | |
"Action" : 11 | |
}, | |
"0xf708-0x20000" : { | |
"Text" : "[15;2~", | |
"Action" : 10 | |
}, | |
"0xf701-0x220000" : { | |
"Text" : "[1;2B", | |
"Action" : 10 | |
}, | |
"0xf70b-0x20000" : { | |
"Text" : "[19;2~", | |
"Action" : 10 | |
}, | |
"0xf702-0x240000" : { | |
"Text" : "[1;5D", | |
"Action" : 10 | |
}, | |
"0xf704-0x20000" : { | |
"Text" : "[1;2P", | |
"Action" : 10 | |
} | |
}, | |
"Window Type" : 0, | |
"Blur Radius" : 4.9864966687817258, | |
"Cursor Type" : 1, | |
"Initial Text" : "", | |
"Background Image Location" : "", | |
"Blur" : false, | |
"Blink Allowed" : true, | |
"Scrollback Lines" : 1000, | |
"Badge Color" : { | |
"Red Component" : 1, | |
"Color Space" : "sRGB", | |
"Blue Component" : 0, | |
"Alpha Component" : 0.5, | |
"Green Component" : 0.1491314172744751 | |
}, | |
"Send Code When Idle" : false, | |
"Close Sessions On End" : true, | |
"Terminal Type" : "xterm-256color", | |
"Visual Bell" : true, | |
"Flashing Bell" : false, | |
"Silence Bell" : false, | |
"Unicode Normalization" : 0, | |
"Ansi 14 Color" : { | |
"Green Component" : 1, | |
"Red Component" : 0.3333333432674408, | |
"Blue Component" : 1 | |
}, | |
"ASCII Ligatures" : true, | |
"Name" : "Default", | |
"Cursor Text Color" : { | |
"Green Component" : 1, | |
"Red Component" : 1, | |
"Blue Component" : 1 | |
}, | |
"Shortcut" : "", | |
"Cursor Color" : { | |
"Green Component" : 0.73333334922790527, | |
"Red Component" : 0.73333334922790527, | |
"Blue Component" : 0.73333334922790527 | |
}, | |
"Ansi 0 Color" : { | |
"Green Component" : 0, | |
"Red Component" : 0, | |
"Blue Component" : 0 | |
}, | |
"Transparency" : 0.28273120241116756, | |
"Horizontal Spacing" : 1, | |
"Link Color" : { | |
"Red Component" : 0, | |
"Color Space" : "sRGB", | |
"Blue Component" : 0.73423302173614502, | |
"Alpha Component" : 1, | |
"Green Component" : 0.35916060209274292 | |
}, | |
"Guid" : "62832749-A3E2-4250-8B8D-9A3545AFD828", | |
"Ansi 1 Color" : { | |
"Green Component" : 0, | |
"Red Component" : 0.73333334922790527, | |
"Blue Component" : 0 | |
}, | |
"Ansi 2 Color" : { | |
"Green Component" : 0.73333334922790527, | |
"Red Component" : 0, | |
"Blue Component" : 0 | |
}, | |
"Ansi 7 Color" : { | |
"Green Component" : 0.73333334922790527, | |
"Red Component" : 0.73333334922790527, | |
"Blue Component" : 0.73333334922790527 | |
}, | |
"Ansi 8 Color" : { | |
"Green Component" : 0.3333333432674408, | |
"Red Component" : 0.3333333432674408, | |
"Blue Component" : 0.3333333432674408 | |
}, | |
"Ansi 9 Color" : { | |
"Green Component" : 0.3333333432674408, | |
"Red Component" : 1, | |
"Blue Component" : 0.3333333432674408 | |
}, | |
"Ansi 4 Color" : { | |
"Green Component" : 0, | |
"Red Component" : 0, | |
"Blue Component" : 0.73333334922790527 | |
}, | |
"Right Option Key Sends" : 0 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment