Last active
August 19, 2021 10:56
-
-
Save rachidcalazans/e7b7ee668b9a8b247b3a9c20e5669366 to your computer and use it in GitHub Desktop.
My Dotfiles
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
My Dotfiles | |
brew install fzf | |
brew install xclip | |
brew install autojump |
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
[default] | |
region = us-west-2 | |
output = json | |
cli_follow_urlparam = false |
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
[default] | |
aws_access_key_id = | |
aws_secret_access_key = |
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
--- | |
include: | |
- "**/*.rb" | |
exclude: | |
- spec/**/* | |
- test/**/* | |
- vendor/**/* | |
- ".bundle/**/*" | |
require: [] | |
domains: [] | |
reporters: | |
- rubocop | |
- require_not_found: | |
exclude: | |
- spec/**/* | |
formatter: | |
rubocop: | |
cops: safe | |
except: [] | |
only: [] | |
extra_args: [] | |
require_paths: [] | |
plugins: [] | |
max_files: 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
unbind C-b | |
set-option -g prefix C-a | |
bind-key C-a send-prefix | |
# set first window to index 1 (not 0) to map more to the keyboard layout... | |
set-option -g base-index 1 | |
set-window-option -g pane-base-index 1 | |
set-window-option -g mouse on | |
# # Use vi keybindings for tmux commandline input. | |
# # Note that to get command mode you need to hit ESC twice... | |
set -g status-keys vi | |
# | |
# # Use vi keybindings in copy and choice modes | |
setw -g mode-keys vi | |
set-window-option -g mode-keys vi | |
# For Linux | |
# bind-key -T copy-mode-vi v send-keys -X begin-selection | |
# bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'xclip -in -selection clipboard' | |
# For OSX | |
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'pbcopy -in -selection clipboard' | |
# Ring the bell if any background window rang a bell | |
# set -g bell-action any | |
# Default termtype. If the rcfile sets $TERM, that overrides this value. | |
# set -g default-terminal "screen-256color" | |
set -g default-terminal "xterm-256color" | |
# Create splits and vertical splits | |
bind-key v split-window -h -p 50 -c "#{pane_current_path}" | |
bind-key b split-window -p 50 -c "#{pane_current_path}" | |
# Pane resize in all four directions using vi bindings. | |
# Can use these raw but I map them to shift-ctrl-<h,j,k,l> in iTerm. | |
bind -r h resize-pane -L 5 | |
bind -r j resize-pane -D 5 | |
bind -r k resize-pane -U 5 | |
bind -r l resize-pane -R 6 | |
# vim-like pane switching | |
# bind -r k select-pane -U | |
# bind -r j select-pane -D | |
# bind -r h select-pane -L | |
# bind -r l select-pane -R | |
# Smart pane switching with awareness of vim splits. | |
# Source: https://github.com/christoomey/vim-tmux-navigator | |
is_vim='echo "#{pane_current_command}" | grep -iqE "(^|\/)g?(view|n?vim?x?)(diff)?$"' | |
bind -n C-h if-shell "$is_vim" "send-keys C-h" "select-pane -L" | |
bind -n C-j if-shell "$is_vim" "send-keys C-j" "select-pane -D" | |
bind -n C-k if-shell "$is_vim" "send-keys C-k" "select-pane -U" | |
bind -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" | |
# bind -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" | |
# color scheme (styled as vim-powerline) | |
set -g status-left-length 52 | |
set -g status-right-length 451 | |
set -g status-style fg=white,bg=colour234 | |
set -g pane-border-style fg=colour245 | |
set -g pane-active-border-style fg=colour39 | |
set -g message-style fg=colour16,bg=colour221,bold | |
set -g status-left '#[fg=colour235,bg=colour252,bold] #S #[fg=colour252,bg=colour238,nobold]#[fg=colour245,bg=colour238,bold] #(whoami) #[fg=colour238,bg=colour234,nobold]' | |
set -g window-status-format '#[fg=colour235,bg=colour252,bold] #I #(pwd="#{pane_current_path}"; echo ${pwd####*/}) #W ' | |
set -g window-status-current-format '#[fg=colour234,bg=colour39]#[fg=gray,bg=colour39,noreverse,bold] #{?window_zoomed_flag,#[fg=colour228],} #I #(pwd="#{pane_current_path}"; echo ${pwd####*/}) #W #[fg=colour39,bg=colour234,nobold]' | |
set-option -g status-interval 2 | |
set -g status-right '' # Disable Clock on status bar | |
set -g status on | |
# No escape time for vi mode | |
# set -sg escape-time 0 | |
# Screen like binding for last window | |
bind C-a last-window | |
# Bigger history | |
# set -g history-limit 10000 | |
# New windows/pane in $PWD | |
# bind c new-window -c "#{pane_current_path}" | |
# force a reload of the config file | |
unbind r | |
bind r source-file ~/.tmux.conf \; display "Reloaded!" | |
# Local config | |
# if-shell "[ -f ~/.tmux.conf.user ]" 'source ~/.tmux.conf.user' |
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
syntax on | |
set guicursor= | |
set cursorline | |
set cursorcolumn | |
set relativenumber | |
set hlsearch | |
set hidden | |
" no bells | |
set noerrorbells | |
set vb t_vb= | |
" --- | |
set tabstop=2 softtabstop=2 | |
set shiftwidth=2 | |
set expandtab | |
set smartindent | |
set nu | |
set nowrap | |
set smartcase | |
set noswapfile | |
set nobackup | |
set undodir=~/.vim/undodir "it's necessary create this folder manually | |
set undofile | |
set incsearch | |
set termguicolors | |
set scrolloff=8 | |
set noshowmode | |
set showcmd | |
" :'<,'>w !xclip -selection clipboard | |
if system('uname -s') == "Darwin\n" | |
set clipboard=unnamed "OSX | |
set backspace=indent,eol,start " more powerful backspacing | |
else | |
set clipboard=unnamedplus "Linux | |
endif | |
" Give more space for displaying messages. | |
set cmdheight=2 | |
" Having longer updatetime (default is 4000 ms = 4 s) leads to noticeable | |
" delays and poor user experience. | |
set updatetime=50 | |
set shortmess+=c | |
set colorcolumn=120 | |
highlight ColorColumn ctermbg=0 guibg=lightgrey | |
if empty(glob('~/.vim/autoload/plug.vim')) | |
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs | |
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | |
autocmd VimEnter * PlugInstall --sync | source ~/.vimrc | |
endif | |
" https://github.com/junegunn/vim-plug | |
call plug#begin('~/.vim/plugged') | |
Plug 'jremmen/vim-ripgrep' "Need to install on machine the -> sudo apt-get install ripgrep | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'tpope/vim-fugitive' | |
Plug 'tpope/vim-endwise' | |
Plug 'tpope/vim-surround' | |
Plug 'vim-utils/vim-man' | |
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } } "Need to install on machine fzf | |
Plug 'junegunn/fzf.vim' | |
Plug 'stsewd/fzf-checkout.vim' | |
Plug 'mbbill/undotree' | |
Plug 'vuciv/vim-bujo' " Simple Todo list | |
Plug 'ngmy/vim-rubocop' | |
Plug 'vim-test/vim-test' | |
Plug 'rizzatti/dash.vim' | |
Plug 'ecomba/vim-ruby-refactoring' | |
Plug 'adelarsq/vim-matchit' " It's a dependency for vim-ruby-refactoring | |
Plug 'preservim/nerdtree' | |
Plug 'tomtom/tcomment_vim' | |
Plug 'andrewradev/splitjoin.vim' | |
Plug 'terryma/vim-multiple-cursors' | |
Plug 'christoomey/vim-tmux-navigator' | |
Plug 'dhruvasagar/vim-table-mode' | |
" CoC extension Plugins | |
Plug 'neoclide/coc-git', {'do': 'npm install --frozen-lockfile'} | |
" Plug 'neoclide/coc-gist', {'do': 'npm install --frozen-lockfile'} | |
Plug 'neoclide/coc-solargraph', {'do': 'npm install --frozen-lockfile'} | |
Plug 'neoclide/coc-yaml', {'do': 'npm install --frozen-lockfile'} | |
" Plug 'neoclide/coc-json', {'do': 'npm install --frozen-lockfile'} | |
" Plug 'neoclide/coc-css', {'do': 'npm install --frozen-lockfile'} | |
" Plug 'neoclide/coc-html', {'do': 'npm install --frozen-lockfile'} | |
" Plug 'neoclide/coc-tsserver', {'do': 'npm install --frozen-lockfile'} | |
" Plug 'neoclide/coc-python', {'do': 'npm install --frozen-lockfile'} | |
" Plug 'neoclide/coc-sql', {'do': 'npm install --frozen-lockfile'} | |
Plug 'gruvbox-community/gruvbox' | |
Plug 'vim-airline/vim-airline' | |
Plug 'colepeters/spacemacs-theme.vim' | |
Plug 'sainnhe/gruvbox-material' | |
Plug 'phanviet/vim-monokai-pro' | |
Plug 'flazz/vim-colorschemes' | |
Plug 'chriskempson/base16-vim' | |
call plug#end() | |
let g:gruvbox_contrast_dark = 'hard' | |
if exists('+termguicolors') | |
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum" | |
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum" | |
endif | |
let g:gruvbox_invert_selection='0' | |
colorscheme gruvbox | |
set background=dark | |
if executable('rg') | |
let g:rg_derive_root='true' | |
endif | |
let loaded_matchparen = 1 | |
let mapleader = " " | |
nnoremap <leader>ev :vsplit ~/.vimrc<cr> | |
nnoremap <leader>sv :source ~/.vimrc<cr> | |
let g:netrw_browse_split = 2 | |
let g:netrw_banner = 0 | |
let g:netrw_winsize = 25 | |
let g:netrw_localrmdir='rm -r' | |
let g:fzf_layout = { 'window': { 'width': 0.8, 'height': 0.8 } } | |
let $FZF_DEFAULT_OPTS='--reverse' | |
let test#strategy = 'vimterminal' | |
let test#swift#swiftpm#file_pattern = 'Tests\.swift' | |
" let test#swift#swiftpm#executable = "xcodebuild test -scheme to-do-list -workspace to-do-list.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 11,OS=14.4' -only-testing to-do-listUITests/to_do_listUITests | xcpretty --test --color" | |
let test#swift#swiftpm#executable = "xcodebuild test -scheme to-do-list -workspace to-do-list.xcworkspace -destination 'platform=iOS Simulator,name=iPhone 11,OS=14.4'" | |
" let test#ruby#rspec#executable = "bundle exec rspec" | |
" ================ | |
" Todo Bujo | |
" =============== | |
let g:bujo#window_width = 50 | |
let g:bujo#todo_file_path = $HOME . "/.cache/bujo" | |
nmap <Leader>tc <Plug>BujoChecknormal | |
nmap <Leader>ta o<Esc><Plug>BujoAddnormal | |
nmap <Leader>tp :Todo<CR> | |
nmap <Leader>tg :Todo g<CR> | |
" ================ | |
" Test Commands | |
" =============== | |
nnoremap <silent> <leader>tn :TestNearest<CR> | |
nnoremap <silent> <leader>tdn :TestNearest -fd<CR> | |
nnoremap <silent> <leader>tf :TestFile<CR> | |
nnoremap <silent> <leader>tdf :TestFile -fd<CR> | |
nnoremap <silent> <leader>ts :TestSuite<CR> | |
nnoremap <silent> <leader>tl :TestLast<CR> | |
nnoremap <silent> <leader>tdl :TestLast -fd<CR> | |
nnoremap <silent> <leader>tv :TestVisit<CR> | |
" ========== | |
" Auto close | |
" ========== | |
" ino " ""<left> | |
" ino ' ''<left> | |
" ino ( ()<left> | |
" ino [ []<left> | |
" ino { {}<left> | |
ino {<CR> {<CR>}<ESC>O | |
" ================ | |
" RuboCop Commands | |
" =============== | |
nnoremap <silent> <leader>r :RuboCop<CR> | |
nnoremap <silent> <leader>rl :RuboCop -l<CR> | |
nnoremap <silent> <leader>ra :RuboCop -a<CR> | |
" ================ | |
" Rails Commands | |
" =============== | |
" create <%= foo %> erb tags using Ctrl-k in edit mode | |
imap <silent> <C-K> <%= %><Esc>3hi | |
" create <%= foo %> erb tags using | |
imap <silent> <C-J> <% %><Esc>2hi | |
:abbr pry require 'pry'; binding.pry<ESC> | |
:abbr bre require 'debug'; binding.break<ESC> | |
" RSpec abbr's | |
:abbr desc describe '' do<CR><ESC>BB | |
:abbr cont context '' do<CR><ESC>BB | |
:abbr iti it '' do<CR><ESC>BB | |
:abbr itii it { expect(1).to be==1 }<ESC> | |
:abbr let let(:) {}<ESC>02wl | |
:abbr before before do<CR><ESC> | |
:abbr allow allow().to receive(:)<ESC>0ww | |
:abbr expec expect().to be<ESC>0ww | |
" ================ | |
" Git Commands | |
" =============== | |
nnoremap <leader>gc :GBranches<CR> | |
nnoremap <leader>gap :Git add -p<CR> | |
nnoremap <leader>gcm :Git commit -s<CR> | |
nnoremap <leader>gs :Git status<CR> | |
nnoremap <leader>gco :Git checkout | |
nnoremap <leader>gps :Git push<CR> | |
nnoremap <leader>gpl :Git pull<CR> | |
nnoremap <leader>gfa :Git fetch --all<CR> | |
" vim-fugitive | |
nmap <leader>gh :diffget //2<CR> | |
nmap <leader>gl :diffget //3<CR> | |
" ================ | |
" Search Commands | |
" =============== | |
nnoremap <leader>ghw :h <C-R>=expand("<cword>")<CR><CR> | |
nnoremap <leader>prw :CocSearch <C-R>=expand("<cword>")<CR><CR> | |
nnoremap <leader>pw :Rg <C-R>=expand("<cword>")<CR><CR> | |
" Search the cursor word as /{word} | |
nnoremap <leader>bs /<C-R>=escape(expand("<cWORD>"), "/")<CR><CR> | |
nnoremap <silent><leader>bu :Buffers <CR> | |
" ================ | |
" Window Commands | |
" =============== | |
nnoremap vv :vsp<CR> | |
nnoremap ss :sp<CR> | |
" Moves a visual block | |
xnoremap K :move '<-2<CR>gv-gv | |
xnoremap J :move '>+1<CR>gv-gv | |
nnoremap <silent> <c-h> :TmuxNavigateLeft<cr> | |
nnoremap <silent> <c-j> :TmuxNavigateDown<cr> | |
nnoremap <silent> <c-k> :TmuxNavigateUp<cr> | |
nnoremap <silent> <c-l> :TmuxNavigateRight<cr> | |
nnoremap <silent> <leader>+ :vertical resize +5<CR> | |
nnoremap <silent> <leader>- :vertical resize -5<CR> | |
nnoremap <silent> <leader>50 :vertical resize 50<CR> | |
nnoremap <silent> <leader>w :w<CR> | |
nnoremap <silent> <leader>wa :wa<CR> | |
nnoremap <silent> <leader>q :q<CR> | |
nnoremap <leader>u :UndotreeShow<CR> | |
" ================ | |
" Clipboard Commands | |
" =============== | |
" nnoremap <leader>cc :'<,'>w !xclip -selection clipboard<CR> | |
" vnoremap <leader>cc :'<,'>w !xclip -selection clipboard<CR> | |
"Clear current search highlight by double tapping // | |
nmap <silent> // :nohlsearch<CR> | |
" ================ | |
" Tree Commands | |
" =============== | |
nnoremap <leader>pv :NERDTreeToggle<CR> | |
nnoremap <leader>pc :NERDTreeFind<CR> | |
" It's necessary run to install :CocInstall coc-explorer | |
let g:coc_global_extensions = ['coc-explorer', 'coc-solargraph'] | |
nmap <C-\> :CocCommand explorer --width 80<CR> | |
nnoremap <leader>ps :Rg<CR> | |
nnoremap <Leader>pf :Files<CR> | |
fun! TrimWhitespace() | |
let l:save = winsaveview() | |
keeppatterns %s/\s\+$//e | |
call winrestview(l:save) | |
endfun | |
" To open NERDTree automatically when vim starts up | |
" autocmd vimenter * NERDTree | |
function! RipgrepFzf(query, fullscreen) | |
let command_fmt = 'rg --column --line-number --no-heading --color=always --smart-case %s || true' | |
let initial_command = printf(command_fmt, shellescape(a:query)) | |
let reload_command = printf(command_fmt, '{q}') | |
let spec = {'options': ['--phony', '--query', a:query, '--bind', 'change:reload:'.reload_command]} | |
call fzf#vim#grep(initial_command, 1, fzf#vim#with_preview(spec), a:fullscreen) | |
endfunction | |
command! -nargs=* -bang Rg call RipgrepFzf(<q-args>, <bang>0) | |
" CoC | |
" Use `[g` and `]g` to navigate diagnostics | |
" Use `:CocDiagnostics` to get all diagnostics of current buffer in location list. | |
nmap <silent> [g <Plug>(coc-diagnostic-prev) | |
nmap <silent> ]g <Plug>(coc-diagnostic-next) | |
" GoTo code navigation. | |
nmap <silent> gd <Plug>(coc-definition) | |
nmap <silent> gy <Plug>(coc-type-definition) | |
nmap <silent> gi <Plug>(coc-implementation) | |
nmap <silent> gr <Plug>(coc-references) | |
" Use K to show documentation in preview window. | |
" nnoremap <silent> K :call <SID>show_documentation()<CR> | |
" Search doc on Dash app | |
nnoremap <silent> K :Dash!<CR> | |
function! s:show_documentation() | |
if (index(['vim','help'], &filetype) >= 0) | |
execute 'h '.expand('<cword>') | |
elseif (coc#rpc#ready()) | |
call CocActionAsync('doHover') | |
else | |
execute '!' . &keywordprg . " " . expand('<cword>') | |
endif | |
endfunction | |
" Coc autocomplete remap | |
inoremap <silent><expr> <TAB> | |
\ pumvisible() ? "\<C-n>" : | |
\ <SID>check_back_space() ? "\<TAB>" : | |
\ coc#refresh() | |
inoremap <expr><S-TAB> pumvisible() ? "\<C-p>" : "\<C-h>" | |
function! s:check_back_space() abort | |
let col = col('.') - 1 | |
return !col || getline('.')[col - 1] =~# '\s' | |
endfunction | |
"------ | |
augroup CHID | |
autocmd! | |
autocmd BufWritePre * :call TrimWhitespace() | |
augroup END | |
autocmd VimEnter * source ~/.vimrc |
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
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* |
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
# Path to your oh-my-zsh installation. | |
export ZSH="/Users/rachidcalazans/.oh-my-zsh" | |
export EDITOR='vim' | |
export VISUAL='vim' | |
alias cwo='chid workstation open' | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes | |
ZSH_THEME="robbyrussell" | |
# Set list of themes to pick from when loading at random | |
# Setting this variable when ZSH_THEME=random will cause zsh to load | |
# a theme from this variable instead of looking in $ZSH/themes/ | |
# If set to an empty array, this variable will have no effect. | |
# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) | |
# Uncomment the following line to use case-sensitive completion. | |
# CASE_SENSITIVE="true" | |
# Uncomment the following line to use hyphen-insensitive completion. | |
# Case-sensitive completion must be off. _ and - will be interchangeable. | |
# HYPHEN_INSENSITIVE="true" | |
# Uncomment the following line to disable bi-weekly auto-update checks. | |
# DISABLE_AUTO_UPDATE="true" | |
# Uncomment the following line to automatically update without prompting. | |
# DISABLE_UPDATE_PROMPT="true" | |
# Uncomment the following line to change how often to auto-update (in days). | |
# export UPDATE_ZSH_DAYS=13 | |
# Uncomment the following line if pasting URLs and other text is messed up. | |
# DISABLE_MAGIC_FUNCTIONS="true" | |
# Uncomment the following line to disable colors in ls. | |
# DISABLE_LS_COLORS="true" | |
# Uncomment the following line to disable auto-setting terminal title. | |
# DISABLE_AUTO_TITLE="true" | |
# Uncomment the following line to enable command auto-correction. | |
# ENABLE_CORRECTION="true" | |
# Uncomment the following line to display red dots whilst waiting for completion. | |
# COMPLETION_WAITING_DOTS="true" | |
# Uncomment the following line if you want to disable marking untracked files | |
# under VCS as dirty. This makes repository status check for large repositories | |
# much, much faster. | |
# DISABLE_UNTRACKED_FILES_DIRTY="true" | |
# Uncomment the following line if you want to change the command execution time | |
# stamp shown in the history command output. | |
# You can set one of the optional three formats: | |
# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" | |
# or set a custom format using the strftime function format specifications, | |
# see 'man strftime' for details. | |
# HIST_STAMPS="mm/dd/yyyy" | |
# Would you like to use another custom folder than $ZSH/custom? | |
# ZSH_CUSTOM=/path/to/new-custom-folder | |
# Which plugins would you like to load? | |
# Standard plugins can be found in $ZSH/plugins/ | |
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=(git fzf rvm rails ruby docker autojump) | |
source $ZSH/oh-my-zsh.sh | |
# User configuration | |
# export MANPATH="/usr/local/man:$MANPATH" | |
# You may need to manually set your language environment | |
# export LANG=en_US.UTF-8 | |
# Preferred editor for local and remote sessions | |
# if [[ -n $SSH_CONNECTION ]]; then | |
# export EDITOR='vim' | |
# else | |
# export EDITOR='mvim' | |
# fi | |
# Compilation flags | |
# export ARCHFLAGS="-arch x86_64" | |
# Set personal aliases, overriding those provided by oh-my-zsh libs, | |
# plugins, and themes. Aliases can be placed here, though oh-my-zsh | |
# users are encouraged to define aliases within the ZSH_CUSTOM folder. | |
# For a full list of active aliases, run `alias`. | |
# | |
# Example aliases | |
# alias zshconfig="mate ~/.zshrc" | |
# alias ohmyzsh="mate ~/.oh-my-zsh" | |
alias rr="RAILS_ENV=test rails db:drop && RAILS_ENV=test rails db:create && RAILS_ENV=test rails db:migrate" | |
alias re="bin/rails db:environment:set RAILS_ENV=test" | |
function prompt_rvm { | |
rbv=`rvm-prompt` | |
rbv=${rbv#ruby-} | |
[[ $rbv == *"@"* ]] || rbv="${rbv}@default" | |
echo $rbv | |
} | |
RPROMPT='%F{blue}$(prompt_rvm)' | |
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change. | |
export PATH="$PATH:$HOME/.rvm/bin" | |
[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function* | |
# [[ -s "$HOME/.vimrc" ]] && source "$HOME/.vimrc" # Load ~/.vimrc | |
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
{ | |
"solargraph.diagnostics": true, | |
"solargraph.useBundler": true, | |
"diagnostic.format": "%message [%source]", | |
"diagnostic.virtualText": true, | |
"diagnostic.checkCurrentLine": true, | |
"diagnostic.separateRelatedInformationAsDiagnostics": true, | |
} |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.15686270594596863</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.15686270594596863</real> | |
<key>Red Component</key> | |
<real>0.15686273574829102</real> | |
</dict> | |
<key>Ansi 1 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.11372547596693039</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.14117637276649475</real> | |
<key>Red Component</key> | |
<real>0.80000001192092896</real> | |
</dict> | |
<key>Ansi 10 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.14901953935623169</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.7333332896232605</real> | |
<key>Red Component</key> | |
<real>0.721568763256073</real> | |
</dict> | |
<key>Ansi 11 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.18431368470191956</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.74117642641067505</real> | |
<key>Red Component</key> | |
<real>0.98039215803146362</real> | |
</dict> | |
<key>Ansi 12 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.59607839584350586</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.64705884456634521</real> | |
<key>Red Component</key> | |
<real>0.51372557878494263</real> | |
</dict> | |
<key>Ansi 13 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.60784310102462769</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.52549010515213013</real> | |
<key>Red Component</key> | |
<real>0.82745110988616943</real> | |
</dict> | |
<key>Ansi 14 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.48627448081970215</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.75294119119644165</real> | |
<key>Red Component</key> | |
<real>0.55686277151107788</real> | |
</dict> | |
<key>Ansi 15 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.69803923368453979</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.85882353782653809</real> | |
<key>Red Component</key> | |
<real>0.92156863212585449</real> | |
</dict> | |
<key>Ansi 2 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.10196074098348618</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.59215694665908813</real> | |
<key>Red Component</key> | |
<real>0.59607851505279541</real> | |
</dict> | |
<key>Ansi 3 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.12941175699234009</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.60000002384185791</real> | |
<key>Red Component</key> | |
<real>0.84313732385635376</real> | |
</dict> | |
<key>Ansi 4 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.53333336114883423</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.52156859636306763</real> | |
<key>Red Component</key> | |
<real>0.270588219165802</real> | |
</dict> | |
<key>Ansi 5 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.5254901647567749</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.38431364297866821</real> | |
<key>Red Component</key> | |
<real>0.69411772489547729</real> | |
</dict> | |
<key>Ansi 6 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.4156862199306488</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.61568635702133179</real> | |
<key>Red Component</key> | |
<real>0.40784317255020142</real> | |
</dict> | |
<key>Ansi 7 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.51764702796936035</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.60000008344650269</real> | |
<key>Red Component</key> | |
<real>0.65882354974746704</real> | |
</dict> | |
<key>Ansi 8 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.45490187406539917</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.51372551918029785</real> | |
<key>Red Component</key> | |
<real>0.57254910469055176</real> | |
</dict> | |
<key>Ansi 9 Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.20392152667045593</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.28627443313598633</real> | |
<key>Red Component</key> | |
<real>0.98431378602981567</real> | |
</dict> | |
<key>Background Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.15686270594596863</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.15686270594596863</real> | |
<key>Red Component</key> | |
<real>0.15686273574829102</real> | |
</dict> | |
<key>Badge Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>0.5</real> | |
<key>Blue Component</key> | |
<real>0.054901950061321259</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.36470580101013184</real> | |
<key>Red Component</key> | |
<real>0.83921569585800171</real> | |
</dict> | |
<key>Bold Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>1</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>1</real> | |
<key>Red Component</key> | |
<real>0.99999600648880005</real> | |
</dict> | |
<key>Cursor Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.69803923368453979</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.85882353782653809</real> | |
<key>Red Component</key> | |
<real>0.92156863212585449</real> | |
</dict> | |
<key>Cursor Guide Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.21176469326019287</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.21960783004760742</real> | |
<key>Red Component</key> | |
<real>0.23529419302940369</real> | |
</dict> | |
<key>Cursor Text Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.15686270594596863</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.15686270594596863</real> | |
<key>Red Component</key> | |
<real>0.15686273574829102</real> | |
</dict> | |
<key>Foreground Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.69803923368453979</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.85882353782653809</real> | |
<key>Red Component</key> | |
<real>0.92156863212585449</real> | |
</dict> | |
<key>Link Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.054901950061321259</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.36470580101013184</real> | |
<key>Red Component</key> | |
<real>0.83921569585800171</real> | |
</dict> | |
<key>Selected Text Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.32941171526908875</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.36078426241874695</real> | |
<key>Red Component</key> | |
<real>0.39999997615814209</real> | |
</dict> | |
<key>Selection Color</key> | |
<dict> | |
<key>Alpha Component</key> | |
<real>1</real> | |
<key>Blue Component</key> | |
<real>0.69803923368453979</real> | |
<key>Color Space</key> | |
<string>sRGB</string> | |
<key>Green Component</key> | |
<real>0.85882353782653809</real> | |
<key>Red Component</key> | |
<real>0.92156863212585449</real> | |
</dict> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment