Skip to content

Instantly share code, notes, and snippets.

@paulopatto
Forked from trcarden/gist:3295935
Last active August 29, 2015 14:03
Show Gist options
  • Save paulopatto/cb8556409ad828fb4838 to your computer and use it in GitHub Desktop.
Save paulopatto/cb8556409ad828fb4838 to your computer and use it in GitHub Desktop.
dotfiles
# $Id: screen-keys.conf,v 1.5 2009/10/25 21:58:05 nicm Exp $
#
# By Nicholas Marriott. Public domain.
#
# This configuration file binds many of the common GNU screen key bindings to
# appropriate tmux key bindings. Note that for some key bindings there is no
# tmux analogue and also that this set omits binding some commands available in
# tmux but not in screen.
#
# Note this is only a selection of key bindings and they are in addition to the
# normal tmux key bindings. This is intended as an example not as to be used
# as-is.
### Unbind existing tmux key bindings (except 0-9).
# Set the prefix to ^A.
unbind C-b
set -g prefix ^O
bind o send-prefix
set-window-option -g utf8 on
# we might need ` at some point, allow switching
# we can also send the prefix char with `-a
#source '~/.powerline/powerline/bindings/tmux/powerline.conf'
if-shell 'test -z "$POWERLINE_COMMAND"' 'if-shell "which powerline-client" "set-environment -g POWERLINE_COMMAND powerline-client" "set-environment -g POWERLINE_COMMAND powerline"'
set -g status on
set -g status-utf8 on
set -g status-interval 2
set -g status-fg colour231
set -g status-bg colour234
set -g status-left-length 20
set -g status-left '#[fg=colour16,bg=colour254,bold] #S #[fg=colour254,bg=colour234,nobold]#(eval $POWERLINE_COMMAND tmux left)'
set -g status-right '#(eval $POWERLINE_COMMAND tmux right -R pane_id=`tmux display -p "#D"`)'
set -g status-right-length 150
set -g window-status-format "#[fg=colour244,bg=colour234]#I #[fg=colour240] #[default]#W "
set -g window-status-current-format "#[fg=colour234,bg=colour31]#[fg=colour117,bg=colour31] #I  #[fg=colour231,bold]#W #[fg=colour31,bg=colour234,nobold]"
set-window-option -g window-status-fg colour249
set-window-option -g window-status-activity-attr none
set-window-option -g window-status-bell-attr none
set-window-option -g window-status-activity-fg yellow
set-window-option -g window-status-bell-fg red
# vim: ft=tmux
# 0 is too far from ` ;)
set -g base-index 1
# set-option -g default-terminal "screen-256color"
set-option -g mouse-select-pane off
set-option -g mouse-resize-pane off
set-option -g mouse-select-window off
set-option -g status-keys vi
set-option -g bell-action any
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not)
set-option -g visual-bell on
setw -g mode-keys vi
setw -g mode-mouse off
setw -g monitor-activity on
bind e previous-window
bind f next-window
#set-option -g status-utf8 on
## set-option -g status-justify centre
#set-option -g status-justify left
#set-option -g status-bg black
#set-option -g status-fg white
#set-option -g status-left-length 40
#
#set-option -g pane-active-border-fg green
#set-option -g pane-active-border-bg black
#set-option -g pane-border-fg white
#set-option -g pane-border-bg black
#
#set-option -g message-fg black
#set-option -g message-bg green
#
##setw -g mode-bg black
#
#setw -g window-status-bg black
#setw -g window-status-current-fg green
#
## [tmux-mem-cpu-load] Config interval
set -g status-interval 2
## [tmux-mem-cpu-load] Status left (modify)
##set -g status-left '#[fg=white]#S #[fg=green,bg=black]#(tmux-mem-cpu-load --colors 2)#[fg=green]][#[default]'
##set -g status-left "#[fg=white]%d-%h-%Y %H:%M #[fg=red]@#S#[fg=green]][#[default]"
#
#set -g status-left '#[fg=red]#[fg=green]@#[fg=white]#S$ #[fg=green]][#[default]'
#set -g status-right '#[fg=green]][#[fg=magenta]# state #[fg=green,bg=black]#(tmux-mem-cpu-load --colors 2)#[default]'
#
#set -g history-limit 4096
#
## `+r reloads the configuration, handy
bind r source-file ~/.tmux.conf
# Colored term
setw -g xterm-keys on
set -g default-terminal "screen-256color"
setw -g aggressive-resize on
# Config CPU, RAM memory, and load monitor for use with tmux
# See project in https://github.com/paulopatto/tmux-mem-cpu-load
# Search all comments with tag [tmux-mem-cpu-load]
" vim: ft=vim
let g:CSApprox_verbose_level = 0
set nocompatible " be iMproved
filetype off " required!
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#rc()
" Bundles
Plugin 'gmarik/vundle'
Plugin 'kien/ctrlp.vim'
Plugin 'tpope/vim-fugitive'
Plugin 'tpope/vim-rails.git'
Plugin 'tpope/vim-ragtag'
Plugin 'tpope/vim-endwise'
Plugin 'tpope/vim-surround'
Plugin 'tpope/vim-commentary'
Plugin 'scrooloose/nerdtree'
Plugin 'thoughtbot/vim-rspec'
Plugin 'Lokaltog/powerline', { 'rtp': '$POWERLINE_HOME/bindings/vim/' }
Plugin 'stephenmckinney/vim-solarized-powerline'
Plugin 'terryma/vim-multiple-cursors'
Plugin 'scrooloose/syntastic'
Plugin 'docunext/closetag.vim'
Plugin 'jg/bufexplorer'
Plugin 'plasticboy/vim-markdown'
Plugin 'mattn/gist-vim'
Plugin 'mattn/webapi-vim'
Plugin 'itspriddle/vim-jquery'
Plugin 'hallison/vim-ruby-sinatra'
Plugin 'scrooloose/nerdcommenter'
Plugin 'airblade/vim-gitgutter'
Plugin 'vim-scripts/Conque-Shell'
Plugin 'davidhalter/jedi-vim'
Plugin 'qstrahl/vim-matchmaker'
Plugin 'Shougo/neocomplcache.vim'
Plugin 'klen/python-mode'
Plugin 'hynek/vim-python-pep8-indent'
Plugin 'kevinw/pyflakes-vim'
Plugin 'Blackrush/vim-gocode'
Plugin 'bling/vim-airline'
Plugin 'rking/ag.vim'
Plugin 'garbas/vim-snipmate'
Plugin 'MarcWeber/vim-addon-mw-utils'
Plugin 'tomtom/tlib_vim'
Plugin 'honza/vim-snippets'
Plugin 'vim-scripts/Gundo'
Plugin 'ervandew/supertab'
Plugin 'Raimondi/delimitMate'
Plugin 'jeyb/vim-jst'
Plugin 'pangloss/vim-javascript'
Plugin 'aaronj1335/underscore-templates.vim'
Plugin 'danro/rename.vim'
Plugin 'edsono/vim-matchit'
Plugin 'ekalinin/Dockerfile.vim'
Plugin 'Yggdroot/indentLine'
Plugin 'tfnico/vim-gradle'
Plugin 'tpope/vim-classpath'
Plugin 'ngmy/vim-rubocop'
Plugin 'derekwyatt/vim-scala'
Plugin 'JuliaLang/julia-vim'
set showcmd "show incomplete cmds down the bottom
set showmode "show current mode down the bottom
set incsearch "find the next match as we type the search
set hlsearch "hilight searches by default
set number
set linespace=4 "add some line space for easy reading
"indent settings
set tabstop=2
set shiftwidth=2
set softtabstop=2
set expandtab
set autoindent
"folding settings
"
" :commands:
" 'za': toggles
" 'zc': closes
" 'zo': opens
" 'zR': open all
" 'zM': close all
"
set foldmethod=indent "fold based on indent
set foldnestmax=3 "deepest fold is 3 levels
set nofoldenable "dont fold by default
set wildmode=list:longest "make cmdline tab completion similar to bash
set wildmenu "enable ctrl-n and ctrl-p to scroll thru matches
set wildignore=*.o,*.obj,*~ "stuff to ignore when tab completing
set formatoptions-=o "dont continue comments when pushing o/O
"vertical/horizontal scroll off settings
set scrolloff=3
set sidescrolloff=7
set sidescroll=1
"load ftplugins and indent files
filetype plugin on
filetype indent on
"turn on syntax highlighting
syntax on
"some stuff to get the mouse going in term
set mouse=a
set ttymouse=xterm2
" PeepOpen uses <Leader>p as well so you will need to redefine it so something
" else in your ~/.vimrc file, such as:
" nmap <silent> <Leader>q <Plug>PeepOpen
silent! nmap <silent> <Leader>p :NERDTreeToggle<CR>
"make <c-l> clear the highlight as well as redraw
nnoremap <C-L> :nohls<CR><C-L>
inoremap <C-L> <C-O>:nohls<CR>
"map to bufexplorer
nnoremap <leader>b :BufExplorer<cr>
"map to bufergator
let g:buffergator_suppress_keymaps = 1
nnoremap <leader>bg :BuffergatorToggle<cr>
"disable resizing when calling buffergator
let g:buffergator_autoexpand_on_split = 0
"map Q to something useful
noremap Q gq
"make Y consistent with C and D
nnoremap Y y$
"bindings for ragtag
inoremap <M-o> <Esc>o
inoremap <C-j> <Down>
let g:ragtag_global_maps = 1
"mark syntax errors with :signs
let g:syntastic_enable_signs=1
"key mapping for vimgrep result navigation
map <A-o> :copen<CR>
map <A-q> :cclose<CR>
map <A-j> :cnext<CR>
map <A-k> :cprevious<CR>
"key mapping for Gundo
nnoremap <F4> :GundoToggle<CR>
nmap <leader>u :undoToggle<cr>
if has("gui_running")
"tell the term has 256 colors
set t_Co=256
colorscheme Tomorrow-Night
set guitablabel=%M%t
set lines=40
set columns=115
if has("gui_gnome")
set term=gnome-256color
colorscheme molokai
endif
if has("gui_mac") || has("gui_macvim")
set guifont=Menlo:h12
set transparency=7
endif
if has("gui_win32") || has("gui_win32s")
set guifont=Consolas:h12
set enc=utf-8
endif
else
"dont load csapprox if there is no gui support - silences an annoying warning
let g:CSApprox_loaded = 1
"set railscasts colorscheme when running vim in gnome terminal
if $COLORTERM == 'gnome-terminal'
set term=screen-256color
colorscheme molokai
else
if $TERM == 'xterm'
"set term=xterm-256color
colorscheme molokai
else
colorscheme molokai
endif
endif
endif
"key mapping for window navigation
map <C-h> <C-w>h
map <C-j> <C-w>j
map <C-k> <C-w>k
map <C-l> <C-w>l
"key mapping for saving file
nmap <C-s> :w<CR>
"key mapping for tab navigation
nmap <S-Tab> gt
nmap <C-S-Tab> gT
"Key mapping for textmate-like indentation
nmap <D-[> <<
nmap <D-]> >>
vmap <D-[> <gv
vmap <D-]> >gv
let ScreenShot = {'Icon':0, 'Credits':0, 'force_background':'#FFFFFF'}
" when press { + Enter, the {} block will expand.
imap {<CR> {}<ESC>i<CR><ESC>O
" NERDTree settings
nmap wm :NERDTree<cr>
let NERDTreeIgnore=['\.swp$']
nnoremap <Esc>A <up>
nnoremap <Esc>B <down>
nnoremap <Esc>C <right>
nnoremap <Esc>D <left>
inoremap <Esc>A <up>
inoremap <Esc>B <down>
inoremap <Esc>C <right>
inoremap <Esc>D <left>
if &term =~ '256color'
" Disable background color erase (BCE), see http://goo.gl/SX794N
set t_ut=
endif
" Fonlding settings by Bryan Liles
set foldmethod=indent "fold based on indent
set foldnestmax=10 "deepest fold is 10 levels
set nofoldenable "dont fold by default
set foldlevel=1 "this is just what i use
" Rspec.vim mappings
map <Leader>t :call RunCurrentSpecFile()<CR>
map <Leader>s :call RunNearestSpec()<CR>
map <Leader>l :call RunLastSpec()<CR>
map <Leader>a :call RunAllSpecs()<CR>
let g:rspec_command = "!bundle exec rspec --color --format documentation --drb {spec}"
set t_Co=256
"try to make possible to navigate within lines of wrapped lines
nmap <Down> gj
nmap <Up> gk
set fo=l
"statusline setup
set statusline=%f "tail of the filename
set statusline+=%{fugitive#statusline()} " Git
set statusline+=%{exists('g:loaded_rvm')?rvm#statusline():''} " RVM Options
set statusline+=%= "left/right separator
set statusline+=%c, "cursor column
set statusline+=%l/%L "cursor line/total lines
set statusline+=\ %P "percent through file
set laststatus=2
" end status line
"turn off needless toolbar on gvim/mvim
set guioptions-=T
"turn off the scroll bar
set guioptions-=L
set guioptions-=r
"recalculate the trailing whitespace warning when idle, and after saving
autocmd cursorhold,bufwritepost * unlet! b:statusline_trailing_space_warning
"return '[\s]' if trailing white space is detected
"return '' otherwise
function! StatuslineTrailingSpaceWarning()
if !exists("b:statusline_trailing_space_warning")
if search('\s\+$', 'nw') != 0
let b:statusline_trailing_space_warning = '[\s]'
else
let b:statusline_trailing_space_warning = ''
endif
endif
return b:statusline_trailing_space_warning
endfunction
"return the syntax highlight group under the cursor ''
function! StatuslineCurrentHighlight()
let name = synIDattr(synID(line('.'),col('.'),1),'name')
if name == ''
return ''
else
return '[' . name . ']'
endif
endfunction
"recalculate the tab warning flag when idle and after writing
autocmd cursorhold,bufwritepost * unlet! b:statusline_tab_warning
"return '[&et]' if &et is set wrong
"return '[mixed-indenting]' if spaces and tabs are used to indent
"return an empty string if everything is fine
function! StatuslineTabWarning()
if !exists("b:statusline_tab_warning")
let tabs = search('^\t', 'nw') != 0
let spaces = search('^ ', 'nw') != 0
if tabs && spaces
let b:statusline_tab_warning = '[mixed-indenting]'
elseif (spaces && !&et) || (tabs && &et)
let b:statusline_tab_warning = '[&et]'
else
let b:statusline_tab_warning = ''
endif
endif
return b:statusline_tab_warning
endfunction
"recalculate the long line warning when idle and after saving
autocmd cursorhold,bufwritepost * unlet! b:statusline_long_line_warning
"return a warning for "long lines" where "long" is either &textwidth or 80 (if
"no &textwidth is set)
"
"return '' if no long lines
"return '[#x,my,$z] if long lines are found, were x is the number of long
"lines, y is the median length of the long lines and z is the length of the
"longest line
function! StatuslineLongLineWarning()
if !exists("b:statusline_long_line_warning")
let long_line_lens = s:LongLines()
if len(long_line_lens) > 0
let b:statusline_long_line_warning = "[" .
\ '#' . len(long_line_lens) . "," .
\ 'm' . s:Median(long_line_lens) . "," .
\ '$' . max(long_line_lens) . "]"
else
let b:statusline_long_line_warning = ""
endif
endif
return b:statusline_long_line_warning
endfunction
"return a list containing the lengths of the long lines in this buffer
function! s:LongLines()
let threshold = (&tw ? &tw : 80)
let spaces = repeat(" ", &ts)
let long_line_lens = []
let i = 1
while i <= line("$")
let len = strlen(substitute(getline(i), '\t', spaces, 'g'))
if len > threshold
call add(long_line_lens, len)
endif
let i += 1
endwhile
return long_line_lens
endfunction
"find the median of the given array of numbers
function! s:Median(nums)
let nums = sort(a:nums)
let l = len(nums)
if l % 2 == 1
let i = (l-1) / 2
return nums[i]
else
return (nums[l/2] + nums[(l/2)-1]) / 2
endif
endfunction
"define :HighlightLongLines command to highlight the offending parts of
"lines that are longer than the specified length (defaulting to 80)
command! -nargs=? HighlightLongLines call s:HighlightLongLines('<args>')
function! s:HighlightLongLines(width)
let targetWidth = a:width != '' ? a:width : 79
if targetWidth > 0
exec 'match Todo /\%>' . (targetWidth) . 'v/'
else
echomsg "Usage: HighlightLongLines [natural number]"
endif
endfunction
" Strip trailing whitespace
function! <SID>StripTrailingWhitespaces()
" Preparation: save last search, and cursor position.
let _s=@/
let l = line(".")
let c = col(".")
" Do the business:
%s/\s\+$//e
" Clean up: restore previous search history, and cursor position
let @/=_s
call cursor(l, c)
endfunction
autocmd BufWritePre * :call <SID>StripTrailingWhitespaces()
" [vim: ft=markdown]
" # Rubocop
" ## Keyboard Shortcuts
"
" > Credit for Shortcuts: [Ack.vim](https://github.com/mileszs/ack.vim)
"
" In the quickfix window, you can use:
" ==================================================================
" > o to open (same as enter)
" > go to preview file (open but maintain focus on ack.vim results)
" > t to open in new tab
" > T to open in new tab silently
" > h to open in horizontal split
" > H to open in horizontal split silently
" > v to open in vertical split
" > gv to open in vertical split silently
" > q to close the quickfix window
" ==================================================================
"
" Additionally, the plugin registers `<Leader>ru` in normal mode for triggering it easily.
" You can disable these default mappings by setting `g:vimrubocop_keymap` in your .vimrc file, and then remap them differently.
"
" For instance, to trigger RuboCop by pressing <Leader>r you can put the following in your .vimrc:
"
" let g:vimrubocop_keymap = 0
" nmap <Leader>r :RuboCop<CR>
let g:vimrubocop_config = "$PWD/.rubocop.yml"

Comando Tree

Adicione este comando ao seu bashrc ou zshrc para ter um comando tree com o ls:

alias lt='ls -R | grep ":$" | sed -e '"'"'s/:$//'"'"' -e '"'"'s/[-][^\/]*\//--/g'"'"' -e '"'"'s/^/   /'"'"' -e '"'"'s/-/|/'"'"

Configurando arquivos

Para configirar o zsh, vim e tmux deixe esses alias em seu term:

# Example aliases
 alias zshconfig="vim $HOME/.zshrc"
 alias ohmyzsh="vim $HOME/.oh-my-zsh"
 alias vimconf="vim $HOME/.vim/vimrc"
 alias tmuxconf="vim $HOME/.tmux.conf"
# SSL self signed localhost for rails start to finish, no red warnings.
# 1) Create your private key (any password will do, we remove it below)
$ openssl genrsa -des3 -out server.orig.key 2048
# 2) Remove the password
$ openssl rsa -in server.orig.key -out server.key
# 3) Generate the csr (Certificate signing request) (Details are important!)
$ openssl req -new -key server.key -out server.csr
# IMPORTANT
# MUST have localhost.ssl as the common name to keep browsers happy
# (has to do with non internal domain names ... which sadly can be
# avoided with a domain name with a "." in the middle of it somewhere)
Country Name (2 letter code) [AU]:
...
Common Name: localhost.ssl
...
# 4) Generate self signed ssl certificate
$ openssl x509 -req -days 365 -in server.csr -signkey server.key -out server.crt
# 5) Finally Add localhost.ssl to your hosts file
$ echo "127.0.0.1 localhost.ssl" | sudo tee -a /private/etc/hosts
# 6) Boot thin
$ thin start --ssl --ssl-verify --ssl-key-file server.key --ssl-cert-file server.crt
# 7) Add server.crt as trusted !!SYSTEM!! (not login) cert in the mac osx keychain
# Open keychain tool, drag .crt file to system, and trust everything.
# Notes:
# 1) Https traffic and http traffic can't be served from the same thin process. If you want
# both you need to start two instances on different ports.
#
#
# vim: ft=tmux
# $Id: screen-keys.conf,v 1.5 2009/10/25 21:58:05 nicm Exp $
#
# By Nicholas Marriott. Public domain.
#
# This configuration file binds many of the common GNU screen key bindings to
# appropriate tmux key bindings. Note that for some key bindings there is no
# tmux analogue and also that this set omits binding some commands available in
# tmux but not in screen.
#
# Note this is only a selection of key bindings and they are in addition to the
# normal tmux key bindings. This is intended as an example not as to be used
# as-is.
source "$POWERLINE_HOME/bindings/tmux/powerline.conf"
# 0 is too far from ` ;)
set -g base-index 1
### Unbind existing tmux key bindings (except 0-9).
# Set the prefix to ^A.
unbind C-b
set -g prefix ^O
bind o send-prefix
set-window-option -g utf8 on
# we might need ` at some point, allow switching
# we can also send the prefix char with `-a
set -g status on
set -g status-utf8 on
set -g status-interval 2
# set-option -g default-terminal "screen-256color"
set-option -g mouse-select-pane off
set-option -g mouse-resize-pane off
set-option -g mouse-select-window off
set-option -g status-keys vi
set-option -g bell-action any
set-option -g set-titles on
set-option -g set-titles-string '#H:#S.#I.#P #W #T' # window number,program name,active (or not)
set-option -g visual-bell on
setw -g mode-keys vi
setw -g mode-mouse off
setw -g monitor-activity on
bind e previous-window
bind f next-window
## `+r reloads the configuration, handy
bind r source-file ~/.tmux.conf
# Colored term
setw -g xterm-keys on
setw -g aggressive-resize on
set -g default-terminal "screen-256color"
# Path to your oh-my-zsh installation.
export ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="agnoster"
# Uncomment the following line to use case-sensitive completion.
# CASE_SENSITIVE="true"
# Uncomment the following line to disable bi-weekly auto-update checks.
# DISABLE_AUTO_UPDATE="true"
# Uncomment the following line to change how often to auto-update (in days).
# export UPDATE_ZSH_DAYS=13
# 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.
# The optional three formats: "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
# 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? (plugins can be found in ~/.oh-my-zsh/plugins/*)
# custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=(git rails node bundler)
source $ZSH/oh-my-zsh.sh
# User configuration
export PATH="/home/paulopatto/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games"
export term="screen-256color"
export POWERLINE_HOME=$HOME/.local/lib/python2.7/site-packages/powerline
export EDITOR='vim'
alias tmux='tmux -2'
# 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"
# ssh
# export SSH_KEY_PATH="~/.ssh/dsa_id"
# 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="vim ~/.zshrc"
alias ohmyzsh="vim ~/.oh-my-zsh"
alias vimconf="vim $HOME/.vim/vimrc"
alias tmuxconf="vim $HOME/.tmux.conf"
export PATH="$HOME/.rbenv/bin:$PATH"
export DOCKER_HOST=tcp://127.0.0.1:4243
eval "$(rbenv init -)"
alias lt='ls -R | grep ":$" | sed -e '"'"'s/:$//'"'"' -e '"'"'s/[-][^\/]*\//--/g'"'"' -e '"'"'s/^/ /'"'"' -e '"'"'s/-/|/'"'"
alias sshkey="cat $HOME/.ssh/id_rsa.pub"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment