Initial commit
This commit is contained in:
68
.Xresources
Normal file
68
.Xresources
Normal file
@@ -0,0 +1,68 @@
|
|||||||
|
|
||||||
|
URxvt*termName: rxvt
|
||||||
|
! rxvt-256colors
|
||||||
|
!URxvt*foreground: #F5FAFC
|
||||||
|
!URxvt*background: #1C1F22
|
||||||
|
URxvt*font: xft:Terminus:size=10:antialias=false
|
||||||
|
URxvt*scrollBar: false
|
||||||
|
! URxvt*geometry: 167x54
|
||||||
|
|
||||||
|
! do not scroll with output
|
||||||
|
URxvt*scrollTtyOutput: false
|
||||||
|
! scroll in relation to buffer (with mouse scroll or Shift+Page Up)
|
||||||
|
URxvt*scrollWithBuffer: true
|
||||||
|
! scroll back to the bottom on keypress
|
||||||
|
URxvt*scrollTtyKeypress: true
|
||||||
|
URxvt*secondaryWheel: true
|
||||||
|
|
||||||
|
URxvt.urgentOnBell: true
|
||||||
|
|
||||||
|
URxvt.perl-ext: default,clipboard,url-select,keyboard-select
|
||||||
|
! tabbed
|
||||||
|
! URxvt.tabbed.tabbar-fg: 2
|
||||||
|
! URxvt.tabbed.tabbar-bg: 0
|
||||||
|
! URxvt.tabbed.tab-fg: 3
|
||||||
|
! URxvt.tabbed.tab-bg: 0
|
||||||
|
|
||||||
|
URxvt.keysym.M-Escape: perl:keyboard-select:activate
|
||||||
|
URxvt.keysym.M-s: perl:keyboard-select:search
|
||||||
|
|
||||||
|
URxvt.url-select.launcher: chromium-browser
|
||||||
|
URxvt.url-select.underline: true
|
||||||
|
URxvt.url-select.button: 1
|
||||||
|
URxvt.keysym.M-u: perl:url-select:select_next
|
||||||
|
|
||||||
|
! links color
|
||||||
|
!URxvt.colorUL: #4682B4
|
||||||
|
|
||||||
|
Xft*dpi: 96
|
||||||
|
Xft*antialias: true
|
||||||
|
|
||||||
|
xterm*faceName:xft:Terminus:size=10:antialias=false
|
||||||
|
|
||||||
|
#include ".Xresources.d/solarized"
|
||||||
|
|
||||||
|
!! 0: black
|
||||||
|
!*color0: #000000
|
||||||
|
!*color8: #000000
|
||||||
|
!! 1: red
|
||||||
|
!*color1: #FF4141
|
||||||
|
!*color9: #FF4141
|
||||||
|
!! 2: green
|
||||||
|
!*color2: #1AE51A
|
||||||
|
!*color10: #1AE51A
|
||||||
|
!! 3: yellow
|
||||||
|
!*color3: #FFFF3A
|
||||||
|
!*color11: #FFFF3A
|
||||||
|
!! 4: blue
|
||||||
|
!*color4: #549BE7
|
||||||
|
!*color12: #549BE7
|
||||||
|
!! 5: magenta
|
||||||
|
!*color5: #FF5AFF
|
||||||
|
!*color13: #FF5AFF
|
||||||
|
!! 6: cyan
|
||||||
|
!*color6: #4BFFFF
|
||||||
|
!*color14: #4BFFFF
|
||||||
|
!! 7: white
|
||||||
|
!*color7: #F5FAFC
|
||||||
|
!*color15: #F5FAFC
|
||||||
425
.ackrc
Normal file
425
.ackrc
Normal file
@@ -0,0 +1,425 @@
|
|||||||
|
--ignore-ack-defaults
|
||||||
|
# This is the default ackrc for ack version 2.14.
|
||||||
|
|
||||||
|
# There are four different ways to match
|
||||||
|
#
|
||||||
|
# is: Match the filename exactly
|
||||||
|
#
|
||||||
|
# ext: Match the extension of the filename exactly
|
||||||
|
#
|
||||||
|
# match: Match the filename against a Perl regular expression
|
||||||
|
#
|
||||||
|
# firstlinematch: Match the first 250 characters of the first line
|
||||||
|
# of text against a Perl regular expression. This is only for
|
||||||
|
# the --type-add option.
|
||||||
|
|
||||||
|
|
||||||
|
### Directories to ignore
|
||||||
|
|
||||||
|
# Bazaar
|
||||||
|
# http://bazaar.canonical.com/
|
||||||
|
--ignore-directory=is:.bzr
|
||||||
|
|
||||||
|
# Codeville
|
||||||
|
# http://freecode.com/projects/codeville
|
||||||
|
--ignore-directory=is:.cdv
|
||||||
|
|
||||||
|
# Interface Builder (Xcode)
|
||||||
|
# http://en.wikipedia.org/wiki/Interface_Builder
|
||||||
|
--ignore-directory=is:~.dep
|
||||||
|
--ignore-directory=is:~.dot
|
||||||
|
--ignore-directory=is:~.nib
|
||||||
|
--ignore-directory=is:~.plst
|
||||||
|
|
||||||
|
# Git
|
||||||
|
# http://git-scm.com/
|
||||||
|
--ignore-directory=is:.git
|
||||||
|
|
||||||
|
# Mercurial
|
||||||
|
# http://mercurial.selenic.com/
|
||||||
|
--ignore-directory=is:.hg
|
||||||
|
|
||||||
|
# quilt
|
||||||
|
# http://directory.fsf.org/wiki/Quilt
|
||||||
|
--ignore-directory=is:.pc
|
||||||
|
|
||||||
|
# Subversion
|
||||||
|
# http://subversion.tigris.org/
|
||||||
|
--ignore-directory=is:.svn
|
||||||
|
|
||||||
|
# Monotone
|
||||||
|
# http://www.monotone.ca/
|
||||||
|
--ignore-directory=is:_MTN
|
||||||
|
|
||||||
|
# CVS
|
||||||
|
# http://savannah.nongnu.org/projects/cvs
|
||||||
|
--ignore-directory=is:CVS
|
||||||
|
|
||||||
|
# RCS
|
||||||
|
# http://www.gnu.org/software/rcs/
|
||||||
|
--ignore-directory=is:RCS
|
||||||
|
|
||||||
|
# SCCS
|
||||||
|
# http://en.wikipedia.org/wiki/Source_Code_Control_System
|
||||||
|
--ignore-directory=is:SCCS
|
||||||
|
|
||||||
|
# darcs
|
||||||
|
# http://darcs.net/
|
||||||
|
--ignore-directory=is:_darcs
|
||||||
|
|
||||||
|
# Vault/Fortress
|
||||||
|
--ignore-directory=is:_sgbak
|
||||||
|
|
||||||
|
# autoconf
|
||||||
|
# http://www.gnu.org/software/autoconf/
|
||||||
|
--ignore-directory=is:autom4te.cache
|
||||||
|
|
||||||
|
# Perl module building
|
||||||
|
--ignore-directory=is:blib
|
||||||
|
--ignore-directory=is:_build
|
||||||
|
|
||||||
|
# Perl Devel::Cover module's output directory
|
||||||
|
# https://metacpan.org/release/Devel-Cover
|
||||||
|
--ignore-directory=is:cover_db
|
||||||
|
|
||||||
|
# Node modules created by npm
|
||||||
|
--ignore-directory=is:node_modules
|
||||||
|
|
||||||
|
# CMake cache
|
||||||
|
# http://www.cmake.org/
|
||||||
|
--ignore-directory=is:CMakeFiles
|
||||||
|
|
||||||
|
# Eclipse workspace folder
|
||||||
|
# http://eclipse.org/
|
||||||
|
--ignore-directory=is:.metadata
|
||||||
|
|
||||||
|
# Cabal (Haskell) sandboxes
|
||||||
|
# http://www.haskell.org/cabal/users-guide/installing-packages.html
|
||||||
|
--ignore-directory=is:.cabal-sandbox
|
||||||
|
|
||||||
|
### Files to ignore
|
||||||
|
|
||||||
|
# Backup files
|
||||||
|
--ignore-file=ext:bak
|
||||||
|
--ignore-file=match:/~$/
|
||||||
|
|
||||||
|
# Emacs swap files
|
||||||
|
--ignore-file=match:/^#.+#$/
|
||||||
|
|
||||||
|
# vi/vim swap files http://vim.org/
|
||||||
|
--ignore-file=match:/[._].*\.swp$/
|
||||||
|
|
||||||
|
# core dumps
|
||||||
|
--ignore-file=match:/core\.\d+$/
|
||||||
|
|
||||||
|
# minified Javascript
|
||||||
|
--ignore-file=match:/[.-]min[.]js$/
|
||||||
|
--ignore-file=match:/[.]js[.]min$/
|
||||||
|
|
||||||
|
# minified CSS
|
||||||
|
--ignore-file=match:/[.]min[.]css$/
|
||||||
|
--ignore-file=match:/[.]css[.]min$/
|
||||||
|
|
||||||
|
# JS and CSS source maps
|
||||||
|
--ignore-file=match:/[.]js[.]map$/
|
||||||
|
--ignore-file=match:/[.]css[.]map$/
|
||||||
|
|
||||||
|
# PDFs, because they pass Perl's -T detection
|
||||||
|
--ignore-file=ext:pdf
|
||||||
|
|
||||||
|
# Common graphics, just as an optimization
|
||||||
|
--ignore-file=ext:gif,jpg,jpeg,png
|
||||||
|
|
||||||
|
# Ignore vendor/bundle dirs
|
||||||
|
--ignore-directory=is:vendor/bundle
|
||||||
|
|
||||||
|
# Ignore vendor/assets dirs
|
||||||
|
--ignore-directory=is:vendor/assets
|
||||||
|
|
||||||
|
# Ignore tmp dirs
|
||||||
|
--ignore-directory=is:tmp
|
||||||
|
|
||||||
|
# Ignore log dirs
|
||||||
|
--ignore-directory=is:log
|
||||||
|
|
||||||
|
# Ignore public dirs
|
||||||
|
--ignore-directory=is:public
|
||||||
|
|
||||||
|
# Ignore logs
|
||||||
|
--ignore-file=ext:log
|
||||||
|
|
||||||
|
# Ignore css
|
||||||
|
--ignore-file=ext:css,sass,scss,styl
|
||||||
|
|
||||||
|
|
||||||
|
### Filetypes defined
|
||||||
|
|
||||||
|
# Perl
|
||||||
|
# http://perl.org/
|
||||||
|
--type-add=perl:ext:pl,pm,pod,t,psgi
|
||||||
|
--type-add=perl:firstlinematch:/^#!.*\bperl/
|
||||||
|
|
||||||
|
# Perl tests
|
||||||
|
--type-add=perltest:ext:t
|
||||||
|
|
||||||
|
# Makefiles
|
||||||
|
# http://www.gnu.org/s/make/
|
||||||
|
--type-add=make:ext:mk
|
||||||
|
--type-add=make:ext:mak
|
||||||
|
--type-add=make:is:makefile
|
||||||
|
--type-add=make:is:Makefile
|
||||||
|
--type-add=make:is:Makefile.Debug
|
||||||
|
--type-add=make:is:Makefile.Release
|
||||||
|
|
||||||
|
# Rakefiles
|
||||||
|
# http://rake.rubyforge.org/
|
||||||
|
--type-add=rake:is:Rakefile
|
||||||
|
|
||||||
|
# CMake
|
||||||
|
# http://www.cmake.org/
|
||||||
|
--type-add=cmake:is:CMakeLists.txt
|
||||||
|
--type-add=cmake:ext:cmake
|
||||||
|
|
||||||
|
# Actionscript
|
||||||
|
--type-add=actionscript:ext:as,mxml
|
||||||
|
|
||||||
|
# Ada
|
||||||
|
# http://www.adaic.org/
|
||||||
|
--type-add=ada:ext:ada,adb,ads
|
||||||
|
|
||||||
|
# ASP
|
||||||
|
# http://msdn.microsoft.com/en-us/library/aa286483.aspx
|
||||||
|
--type-add=asp:ext:asp
|
||||||
|
|
||||||
|
# ASP.Net
|
||||||
|
# http://www.asp.net/
|
||||||
|
--type-add=aspx:ext:master,ascx,asmx,aspx,svc
|
||||||
|
|
||||||
|
# Assembly
|
||||||
|
--type-add=asm:ext:asm,s
|
||||||
|
|
||||||
|
# Batch
|
||||||
|
--type-add=batch:ext:bat,cmd
|
||||||
|
|
||||||
|
# ColdFusion
|
||||||
|
# http://en.wikipedia.org/wiki/ColdFusion
|
||||||
|
--type-add=cfmx:ext:cfc,cfm,cfml
|
||||||
|
|
||||||
|
# Clojure
|
||||||
|
# http://clojure.org/
|
||||||
|
--type-add=clojure:ext:clj
|
||||||
|
|
||||||
|
# C
|
||||||
|
# .xs are Perl C files
|
||||||
|
--type-add=cc:ext:c,h,xs
|
||||||
|
|
||||||
|
# C header files
|
||||||
|
--type-add=hh:ext:h
|
||||||
|
|
||||||
|
# CoffeeScript
|
||||||
|
# http://coffeescript.org/
|
||||||
|
--type-add=coffeescript:ext:coffee
|
||||||
|
|
||||||
|
# C++
|
||||||
|
--type-add=cpp:ext:cpp,cc,cxx,m,hpp,hh,h,hxx
|
||||||
|
|
||||||
|
# C#
|
||||||
|
--type-add=csharp:ext:cs
|
||||||
|
|
||||||
|
# CSS
|
||||||
|
# http://www.w3.org/Style/CSS/
|
||||||
|
--type-add=css:ext:css
|
||||||
|
|
||||||
|
# Dart
|
||||||
|
# http://www.dartlang.org/
|
||||||
|
--type-add=dart:ext:dart
|
||||||
|
|
||||||
|
# Delphi
|
||||||
|
# http://en.wikipedia.org/wiki/Embarcadero_Delphi
|
||||||
|
--type-add=delphi:ext:pas,int,dfm,nfm,dof,dpk,dproj,groupproj,bdsgroup,bdsproj
|
||||||
|
|
||||||
|
# Elixir
|
||||||
|
# http://elixir-lang.org/
|
||||||
|
--type-add=elixir:ext:ex,exs
|
||||||
|
|
||||||
|
# Emacs Lisp
|
||||||
|
# http://www.gnu.org/software/emacs
|
||||||
|
--type-add=elisp:ext:el
|
||||||
|
|
||||||
|
# Erlang
|
||||||
|
# http://www.erlang.org/
|
||||||
|
--type-add=erlang:ext:erl,hrl
|
||||||
|
|
||||||
|
# Fortran
|
||||||
|
# http://en.wikipedia.org/wiki/Fortran
|
||||||
|
--type-add=fortran:ext:f,f77,f90,f95,f03,for,ftn,fpp
|
||||||
|
|
||||||
|
# Gentoo http://www.gentoo.org/
|
||||||
|
--type-add=gentoo:ext:ebuild,eclass
|
||||||
|
|
||||||
|
# Go
|
||||||
|
# http://golang.org/
|
||||||
|
--type-add=go:ext:go
|
||||||
|
|
||||||
|
# Groovy
|
||||||
|
# http://groovy.codehaus.org/
|
||||||
|
--type-add=groovy:ext:groovy,gtmpl,gpp,grunit,gradle
|
||||||
|
|
||||||
|
# Haskell
|
||||||
|
# http://www.haskell.org/
|
||||||
|
--type-add=haskell:ext:hs,lhs
|
||||||
|
|
||||||
|
# HTML
|
||||||
|
--type-add=html:ext:htm,html
|
||||||
|
|
||||||
|
# Jade
|
||||||
|
# http://jade-lang.com/
|
||||||
|
--type-add=jade:ext:jade
|
||||||
|
|
||||||
|
# Java
|
||||||
|
# http://www.oracle.com/technetwork/java/index.html
|
||||||
|
--type-add=java:ext:java,properties
|
||||||
|
|
||||||
|
# JavaScript
|
||||||
|
--type-add=js:ext:js
|
||||||
|
|
||||||
|
# JSP
|
||||||
|
# http://www.oracle.com/technetwork/java/javaee/jsp/index.html
|
||||||
|
--type-add=jsp:ext:jsp,jspx,jhtm,jhtml
|
||||||
|
|
||||||
|
# JSON
|
||||||
|
# http://www.json.org/
|
||||||
|
--type-add=json:ext:json
|
||||||
|
|
||||||
|
# Less
|
||||||
|
# http://www.lesscss.org/
|
||||||
|
--type-add=less:ext:less
|
||||||
|
|
||||||
|
# Common Lisp
|
||||||
|
# http://common-lisp.net/
|
||||||
|
--type-add=lisp:ext:lisp,lsp
|
||||||
|
|
||||||
|
# Lua
|
||||||
|
# http://www.lua.org/
|
||||||
|
--type-add=lua:ext:lua
|
||||||
|
--type-add=lua:firstlinematch:/^#!.*\blua(jit)?/
|
||||||
|
|
||||||
|
# Objective-C
|
||||||
|
--type-add=objc:ext:m,h
|
||||||
|
|
||||||
|
# Objective-C++
|
||||||
|
--type-add=objcpp:ext:mm,h
|
||||||
|
|
||||||
|
# OCaml
|
||||||
|
# http://caml.inria.fr/
|
||||||
|
--type-add=ocaml:ext:ml,mli
|
||||||
|
|
||||||
|
# Matlab
|
||||||
|
# http://en.wikipedia.org/wiki/MATLAB
|
||||||
|
--type-add=matlab:ext:m
|
||||||
|
|
||||||
|
# Parrot
|
||||||
|
# http://www.parrot.org/
|
||||||
|
--type-add=parrot:ext:pir,pasm,pmc,ops,pod,pg,tg
|
||||||
|
|
||||||
|
# PHP
|
||||||
|
# http://www.php.net/
|
||||||
|
--type-add=php:ext:php,phpt,php3,php4,php5,phtml
|
||||||
|
--type-add=php:firstlinematch:/^#!.*\bphp/
|
||||||
|
|
||||||
|
# Plone
|
||||||
|
# http://plone.org/
|
||||||
|
--type-add=plone:ext:pt,cpt,metadata,cpy,py
|
||||||
|
|
||||||
|
# Python
|
||||||
|
# http://www.python.org/
|
||||||
|
--type-add=python:ext:py
|
||||||
|
--type-add=python:firstlinematch:/^#!.*\bpython/
|
||||||
|
|
||||||
|
# R
|
||||||
|
# http://www.r-project.org/
|
||||||
|
--type-add=rr:ext:R
|
||||||
|
|
||||||
|
# reStructured Text
|
||||||
|
# http://docutils.sourceforge.net/rst.html
|
||||||
|
--type-add=rst:ext:rst
|
||||||
|
|
||||||
|
# Ruby
|
||||||
|
# http://www.ruby-lang.org/
|
||||||
|
--type-add=ruby:ext:rb,rhtml,rjs,rxml,erb,rake,spec
|
||||||
|
--type-add=ruby:is:Rakefile
|
||||||
|
--type-add=ruby:firstlinematch:/^#!.*\bruby/
|
||||||
|
|
||||||
|
# Rust
|
||||||
|
# http://www.rust-lang.org/
|
||||||
|
--type-add=rust:ext:rs
|
||||||
|
|
||||||
|
# Sass
|
||||||
|
# http://sass-lang.com
|
||||||
|
--type-add=sass:ext:sass,scss
|
||||||
|
|
||||||
|
# Scala
|
||||||
|
# http://www.scala-lang.org/
|
||||||
|
--type-add=scala:ext:scala
|
||||||
|
|
||||||
|
# Scheme
|
||||||
|
# http://groups.csail.mit.edu/mac/projects/scheme/
|
||||||
|
--type-add=scheme:ext:scm,ss
|
||||||
|
|
||||||
|
# Shell
|
||||||
|
--type-add=shell:ext:sh,bash,csh,tcsh,ksh,zsh,fish
|
||||||
|
--type-add=shell:firstlinematch:/^#!.*\b(?:ba|t?c|k|z|fi)?sh\b/
|
||||||
|
|
||||||
|
# Smalltalk
|
||||||
|
# http://www.smalltalk.org/
|
||||||
|
--type-add=smalltalk:ext:st
|
||||||
|
|
||||||
|
# Smarty
|
||||||
|
# http://www.smarty.net/
|
||||||
|
--type-add=smarty:ext:tpl
|
||||||
|
|
||||||
|
# SQL
|
||||||
|
# http://www.iso.org/iso/catalogue_detail.htm?csnumber=45498
|
||||||
|
--type-add=sql:ext:sql,ctl
|
||||||
|
|
||||||
|
# Stylus
|
||||||
|
# http://learnboost.github.io/stylus/
|
||||||
|
--type-add=stylus:ext:styl
|
||||||
|
|
||||||
|
# Tcl
|
||||||
|
# http://www.tcl.tk/
|
||||||
|
--type-add=tcl:ext:tcl,itcl,itk
|
||||||
|
|
||||||
|
# LaTeX
|
||||||
|
# http://www.latex-project.org/
|
||||||
|
--type-add=tex:ext:tex,cls,sty
|
||||||
|
|
||||||
|
# Template Toolkit (Perl)
|
||||||
|
# http://template-toolkit.org/
|
||||||
|
--type-add=tt:ext:tt,tt2,ttml
|
||||||
|
|
||||||
|
# Visual Basic
|
||||||
|
--type-add=vb:ext:bas,cls,frm,ctl,vb,resx
|
||||||
|
|
||||||
|
# Verilog
|
||||||
|
--type-add=verilog:ext:v,vh,sv
|
||||||
|
|
||||||
|
# VHDL
|
||||||
|
# http://www.eda.org/twiki/bin/view.cgi/P1076/WebHome
|
||||||
|
--type-add=vhdl:ext:vhd,vhdl
|
||||||
|
|
||||||
|
# Vim
|
||||||
|
# http://www.vim.org/
|
||||||
|
--type-add=vim:ext:vim
|
||||||
|
|
||||||
|
# XML
|
||||||
|
# http://www.w3.org/TR/REC-xml/
|
||||||
|
--type-add=xml:ext:xml,dtd,xsl,xslt,ent
|
||||||
|
--type-add=xml:firstlinematch:/<[?]xml/
|
||||||
|
|
||||||
|
# YAML
|
||||||
|
# http://yaml.org/
|
||||||
|
--type-add=yaml:ext:yaml,yml
|
||||||
|
|
||||||
|
# Other
|
||||||
|
--sort-files
|
||||||
15
.screenrc
Normal file
15
.screenrc
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
shell -$SHELL
|
||||||
|
hardstatus alwayslastline
|
||||||
|
hardstatus string '%{= kG}[%= %{= kw}%?%-Lw%?%{r}(%{W}%n*%f%t%?(%u)%?%{r})%{w}%?%+Lw%?%?%= %{g}][]'
|
||||||
|
|
||||||
|
startup_message off
|
||||||
|
autodetach on
|
||||||
|
altscreen on
|
||||||
|
defscrollback 1000
|
||||||
|
|
||||||
|
term xterm
|
||||||
|
attrcolor b ".I"
|
||||||
|
# Tell screen how to set colors. AB = background, AF=foreground
|
||||||
|
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
|
||||||
|
# Erase background with current bg color. Not needed if TERM=screen-256color
|
||||||
|
defbce "on"
|
||||||
252
.vimrc
Normal file
252
.vimrc
Normal file
@@ -0,0 +1,252 @@
|
|||||||
|
set nocompatible
|
||||||
|
filetype off
|
||||||
|
|
||||||
|
set rtp+=~/.vim/bundle/Vundle.vim
|
||||||
|
call vundle#begin()
|
||||||
|
|
||||||
|
" let Vundle manage Vundle
|
||||||
|
" required!
|
||||||
|
Plugin 'gmarik/Vundle.vim'
|
||||||
|
Plugin 'pydave/AsyncCommand'
|
||||||
|
Plugin 'tpope/vim-fugitive'
|
||||||
|
" Plugin 'Lokaltog/vim-easymotion'
|
||||||
|
Plugin 'Valloric/YouCompleteMe'
|
||||||
|
|
||||||
|
" Ruby/Rails
|
||||||
|
Plugin 'tpope/vim-rails'
|
||||||
|
Plugin 'tpope/vim-rake'
|
||||||
|
Plugin 'tpope/vim-bundler'
|
||||||
|
|
||||||
|
Plugin 'L9'
|
||||||
|
" Plugin 'FuzzyFinder'
|
||||||
|
" Plugin 'AutoComplPop'
|
||||||
|
Plugin 'scrooloose/nerdcommenter'
|
||||||
|
Plugin 'scrooloose/nerdtree'
|
||||||
|
Plugin 'jistr/vim-nerdtree-tabs'
|
||||||
|
" Plugin 'tpope/vim-rvm'
|
||||||
|
" Plugin 'vim-scripts/ScreenShot'
|
||||||
|
Plugin 'vim-scripts/SearchComplete'
|
||||||
|
Plugin 'MarcWeber/vim-addon-mw-utils'
|
||||||
|
Plugin 'vim-scripts/tlib'
|
||||||
|
Plugin 'garbas/vim-snipmate'
|
||||||
|
Plugin 'honza/vim-snippets'
|
||||||
|
Plugin 'vim-scripts/taglist.vim'
|
||||||
|
" Langs
|
||||||
|
Plugin 'kchmck/vim-coffee-script'
|
||||||
|
Plugin 'slim-template/vim-slim'
|
||||||
|
Plugin 'fatih/vim-go'
|
||||||
|
Plugin 'wavded/vim-stylus'
|
||||||
|
Plugin 'tpope/vim-haml'
|
||||||
|
Plugin 'digitaltoad/vim-jade'
|
||||||
|
|
||||||
|
" CVS
|
||||||
|
Plugin 'phleet/vim-mercenary'
|
||||||
|
|
||||||
|
Plugin 'mattn/calendar-vim'
|
||||||
|
Plugin 'vim-scripts/vimwiki'
|
||||||
|
" Plugin 'mhinz/vim-startify'
|
||||||
|
Plugin 'ngmy/vim-rubocop'
|
||||||
|
"Plugin 'bling/vim-airline'
|
||||||
|
Plugin 'tpope/vim-surround'
|
||||||
|
Plugin 'kien/ctrlp.vim'
|
||||||
|
Plugin 'whatyouhide/vim-gotham'
|
||||||
|
Plugin 'ervandew/supertab'
|
||||||
|
" Plugin 'farseer90718/vim-taskwarrior'
|
||||||
|
Plugin 'mileszs/ack.vim'
|
||||||
|
Plugin 'godlygeek/tabular'
|
||||||
|
Plugin 'nathanaelkane/vim-indent-guides'
|
||||||
|
|
||||||
|
Plugin 'scrooloose/syntastic'
|
||||||
|
Plugin 'syngan/vim-vimlint'
|
||||||
|
Plugin 'ynkdir/vim-vimlparser'
|
||||||
|
" Plugin 'tpope/vim-dispatch'
|
||||||
|
Plugin 'altercation/vim-colors-solarized'
|
||||||
|
Plugin 'airblade/vim-gitgutter'
|
||||||
|
Plugin 'szw/vim-maximizer'
|
||||||
|
|
||||||
|
call vundle#end()
|
||||||
|
|
||||||
|
let wiki = {}
|
||||||
|
let wiki.path = '~/wiki/'
|
||||||
|
let wiki.diary_rel_path='journal/'
|
||||||
|
let wiki.diary_index='journal'
|
||||||
|
let wiki.diary_header='Journal'
|
||||||
|
let wiki.syntax = 'markdown'
|
||||||
|
let wiki.ext = '.md'
|
||||||
|
"let wiki.auto_export = 1
|
||||||
|
let wiki.nested_syntaxes = {'ruby': 'ruby', 'sh': 'sh'}
|
||||||
|
"let wiki.custom_wiki2html = '~/scripts/vimwiki-md2html.rb'
|
||||||
|
let g:vimwiki_list = [wiki]
|
||||||
|
let g:vimwiki_hl_headers = 1
|
||||||
|
let g:vimwiki_hl_cb_checked = 1
|
||||||
|
let g:vimwiki_ext2syntax = {'.md': 'markdown', '.mkd': 'markdown', '.wiki': 'media'}
|
||||||
|
|
||||||
|
" NERD Commenter
|
||||||
|
" Add spaces after comment delimiters by default
|
||||||
|
let g:NERDSpaceDelims = 1
|
||||||
|
" Use compact syntax for prettified multi-line comments
|
||||||
|
let g:NERDCompactSexyComs = 1
|
||||||
|
" Align line-wise comment delimiters flush left instead of following code indentation
|
||||||
|
let g:NERDDefaultAlign = 'left'
|
||||||
|
" Allow commenting and inverting empty lines (useful when commenting a region)
|
||||||
|
let g:NERDCommentEmptyLines = 0
|
||||||
|
" Enable trimming of trailing whitespace when uncommenting
|
||||||
|
let g:NERDTrimTrailingWhitespace = 0
|
||||||
|
|
||||||
|
" NERDtree-tabs
|
||||||
|
let g:nerdtree_tabs_open_on_gui_startup = 0
|
||||||
|
let g:nerdtree_tabs_autoclose = 0
|
||||||
|
|
||||||
|
" Snipmate
|
||||||
|
imap <S-En> <Plug>snipMateNextOrTrigger
|
||||||
|
|
||||||
|
" Syntastic
|
||||||
|
" let g:syntastic_ruby_checkers = ['mri']
|
||||||
|
"let g:syntastic_shell = "/bin/sh"
|
||||||
|
"let g:syntastic_loc_list_height = 2
|
||||||
|
"let g:syntastic_enable_balloons = 1
|
||||||
|
"let g:syntastic_ruby_checkers = ['rubocop']
|
||||||
|
"let g:syntastic_ruby_rubocop_exec ='/home/kressh/.rbenv/versions/2.2.0/bin/rubocop'
|
||||||
|
" let g:syntastic_ruby_rubocop_args = '-l'
|
||||||
|
" let g:syntastic_quiet_messages = { "type": "style" }
|
||||||
|
"let g:syntastic_always_populate_loc_list = 0
|
||||||
|
"let g:syntastic_auto_loc_list = 1
|
||||||
|
"let g:syntastic_check_on_open = 0
|
||||||
|
"let g:syntastic_check_on_wq = 1
|
||||||
|
|
||||||
|
let g:snipMate = get(g:, 'snipMate', {}) " Allow for vimrc re-sourcing
|
||||||
|
|
||||||
|
" Ack
|
||||||
|
let g:ack_use_dispatch = 0
|
||||||
|
|
||||||
|
syntax enable
|
||||||
|
filetype plugin indent on
|
||||||
|
|
||||||
|
silent! nmap <C-p> :NERDTreeTabsToggle<CR>
|
||||||
|
silent! map <F4> :NERDTreeFind<CR>
|
||||||
|
let g:NERDTreeMapActivateNode="<F4>"
|
||||||
|
let g:NERDTreeMapPreview="<F3>"
|
||||||
|
|
||||||
|
let g:calendar_keys = {'goto_next_month': '<C-Right>',
|
||||||
|
\ 'goto_prev_month': '<C-Left>',
|
||||||
|
\ 'goto_prev_year': '<C-Down>',
|
||||||
|
\ 'goto_next_year': '<C-Up>'}
|
||||||
|
let g:calendar_monday = 1
|
||||||
|
let g:calendar_focus_today = 1
|
||||||
|
|
||||||
|
au BufRead,BufNewFile *.rabl setf ruby
|
||||||
|
au BufRead,BufNewFile *.arb setf ruby
|
||||||
|
|
||||||
|
" silent! nmap <C-f> :FufLine<CR>
|
||||||
|
" silent! nmap <C-g> :FufCoverageFile<CR>
|
||||||
|
"let g:airline_theme = 'gotham'
|
||||||
|
"let g:airline_left_sep = '▶' " Set custom left separator
|
||||||
|
"let g:airline_right_sep = '◀' " Set custom right separator
|
||||||
|
"let g:airline#extensions#tabline#enabled = 1 " Enable airline for tab-bar
|
||||||
|
"let g:airline#extensions#tabline#show_buffers = 0 " Don't display buffers in tab-bar with single tab
|
||||||
|
"let g:airline#extensions#tabline#fnamemod = ':t' " Display only filename in tab
|
||||||
|
"let g:airline_section_y = '' " Don't display encoding
|
||||||
|
|
||||||
|
" Vim gitgutter
|
||||||
|
let g:gitgutter_sign_added = '█'
|
||||||
|
let g:gitgutter_sign_modified = '█'
|
||||||
|
let g:gitgutter_sign_removed = '█'
|
||||||
|
let g:gitgutter_sign_removed_first_line = '█'
|
||||||
|
let g:gitgutter_sign_modified_removed = '█'
|
||||||
|
|
||||||
|
let g:ctrlp_map = '<c-g>'
|
||||||
|
let g:ctrlp_cmd = 'CtrlP'
|
||||||
|
let g:ctrlp_custom_ignore = '\v(node_modules|vendor\/bundle)$'
|
||||||
|
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
|
||||||
|
|
||||||
|
" Vim maximizer
|
||||||
|
let g:maximizer_default_mapping_key = '<F3>'
|
||||||
|
|
||||||
|
" Replace current word with yanked or deleted text
|
||||||
|
nnoremap S "_diwP
|
||||||
|
|
||||||
|
fun! <SID>StripTrailingWhitespaces()
|
||||||
|
let l = line(".")
|
||||||
|
let c = col(".")
|
||||||
|
%s/\s\+$//e
|
||||||
|
call cursor(l, c)
|
||||||
|
endfun
|
||||||
|
|
||||||
|
" Automatically clean trailing whitespaces on save
|
||||||
|
autocmd BufWritePre *.* :call <SID>StripTrailingWhitespaces()
|
||||||
|
|
||||||
|
set noswapfile
|
||||||
|
set background=dark
|
||||||
|
" colorscheme coldrails
|
||||||
|
colorscheme solarized
|
||||||
|
call togglebg#map("<F5>")
|
||||||
|
|
||||||
|
set ofu=syntaxcomplete#Complete
|
||||||
|
set ts=2 " Tabs are 2 spaces
|
||||||
|
set bs=2 " Backspace over everything in insert mode
|
||||||
|
set shiftwidth=2 " Tabs under smart indent
|
||||||
|
|
||||||
|
if has("gui_running")
|
||||||
|
set go-=m " remove menu bar
|
||||||
|
set go-=T " remove toolbar
|
||||||
|
set go-=r " remove right-hand scroll bar
|
||||||
|
set go-=e " remove gui tabs
|
||||||
|
set go-=L " remove left-hand scroll bar
|
||||||
|
|
||||||
|
let g:miniBufExplMapWindowNavVim = 1
|
||||||
|
let g:miniBufExplMapWindowNavArrows = 1
|
||||||
|
let g:miniBufExplMapCTabSwitchBufs = 1
|
||||||
|
let g:miniBufExplModSelTarget = 1
|
||||||
|
|
||||||
|
set guifont=Terminus\ 10
|
||||||
|
set cf " Enable error files & error jumping.
|
||||||
|
set clipboard=unnamed " Yanks go on clipboard instead.
|
||||||
|
set history=32 " Number of things to remember in history.
|
||||||
|
set autowrite " Writes on make/shell commands
|
||||||
|
set nu " Line numbers on
|
||||||
|
" set nowrap " Line wrapping off
|
||||||
|
set wrap
|
||||||
|
set linebreak
|
||||||
|
set notimeout
|
||||||
|
set ttimeout
|
||||||
|
" set timeoutlen=250 " Time to wait after ESC (default causes an annoying delay)
|
||||||
|
set synmaxcol=160
|
||||||
|
set nocp incsearch
|
||||||
|
" Search
|
||||||
|
" set ignorecase " Ignore case of searches
|
||||||
|
set incsearch
|
||||||
|
set hlsearch " Highlight searches
|
||||||
|
set ruler " Ruler on
|
||||||
|
|
||||||
|
set cinoptions=:0,p0,t0
|
||||||
|
set cinwords=if,else,while,do,for,switch,case,begin
|
||||||
|
set formatoptions=tcqr
|
||||||
|
set cindent
|
||||||
|
set autoindent
|
||||||
|
set smarttab
|
||||||
|
set expandtab
|
||||||
|
|
||||||
|
set nostartofline " Don’t reset cursor to start of line when moving around.
|
||||||
|
set colorcolumn=80,120
|
||||||
|
hi ColorColumn guibg=Black
|
||||||
|
set noeol " Don’t add empty newlines at the end of files
|
||||||
|
:autocmd InsertEnter * set cul " Show cursor line in insert mode
|
||||||
|
:autocmd InsertLeave * set nocul " Hide cursor line in insert mode
|
||||||
|
|
||||||
|
" Visual
|
||||||
|
set showmatch " Show matching brackets.
|
||||||
|
set mat=5 " Bracket blinking.
|
||||||
|
" Show $ at end of line and trailing space as ~
|
||||||
|
set novisualbell " No blinking .
|
||||||
|
set noerrorbells " No noise.
|
||||||
|
set laststatus=2 " Always show status line.
|
||||||
|
" gvim specific
|
||||||
|
set mousehide " Hide mouse after chars typed
|
||||||
|
set mouse-=a " Mouse in all modes
|
||||||
|
|
||||||
|
" Invisibles
|
||||||
|
set list " show invisibles
|
||||||
|
set listchars=tab:▸\ ,eol:¬
|
||||||
|
end " end for guichecking if
|
||||||
|
|
||||||
|
" let $PATH="/home/kressh/.rvm/bin:/home/kressh/bin:".$PATH
|
||||||
215
.zshrc
Normal file
215
.zshrc
Normal file
@@ -0,0 +1,215 @@
|
|||||||
|
# Добавляем ~/bin в PATH
|
||||||
|
if [ -d $HOME/bin ] ; then
|
||||||
|
PATH=$HOME/bin:$PATH
|
||||||
|
fi
|
||||||
|
|
||||||
|
# autoload colors && colors
|
||||||
|
|
||||||
|
|
||||||
|
# aliases
|
||||||
|
alias sdr="screen -aAdr"
|
||||||
|
alias la="ls -A"
|
||||||
|
alias ll="ls -lAF"
|
||||||
|
alias grep='grep --exclude="*.svn*" --exclude="*.git*"'
|
||||||
|
alias iddqd="sudo -s"
|
||||||
|
alias mkpasswd="head -c16 /dev/urandom | xxd -ps"
|
||||||
|
# alias mc="mc -b"
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
alias less='vimpager'
|
||||||
|
# fix_mp3() { find -iname '*.mp3' -print0 | xargs -0 mid3iconv -eCP1251 --remove-v1 }
|
||||||
|
# mpg2flv() { ffmpeg -i $1 -ar 22050 -ab 32 -f flv -s 320x240 `echo $1 | awk -F . '{print $1}'`.flv }
|
||||||
|
mcd() { mkdir $1; cd $1 }
|
||||||
|
newday() { mcd `date +%F` }
|
||||||
|
c() { awk "{ print \$$1 }" }
|
||||||
|
ed2pull() { for i in `ls ./engines`; do echo "./engines/$i"; cd ./engines/$i; git pull; cd ../..; done; }
|
||||||
|
ed2st() { for i in `ls ./engines`; do echo "./engines/$i"; cd ./engines/$i; git st; cd ../..; done; }
|
||||||
|
|
||||||
|
# Lines configured by zsh-newuser-install
|
||||||
|
HISTFILE=~/.histfile
|
||||||
|
HISTSIZE=1000
|
||||||
|
SAVEHIST=1000
|
||||||
|
|
||||||
|
#Дописывание файла истории
|
||||||
|
setopt appendhistory
|
||||||
|
#Игнорировать повторения команд
|
||||||
|
setopt HIST_IGNORE_ALL_DUPS
|
||||||
|
#Игнорировать лишние пробелы
|
||||||
|
setopt HIST_IGNORE_SPACE
|
||||||
|
#Удалять пустые строки
|
||||||
|
setopt HIST_REDUCE_BLANKS
|
||||||
|
#Не пищим при дополнении и ошибках
|
||||||
|
unsetopt beep
|
||||||
|
#Перейти в директорию, если набрали путь без команды cd
|
||||||
|
setopt AUTO_CD
|
||||||
|
|
||||||
|
# setopt CORRECT_ALL
|
||||||
|
# Вопрос на автокоррекцию
|
||||||
|
# SPROMPT='zsh: Исправить '\''%R'\'' на '\''%r'\'' ? [Yes/No/Abort/Edit] '
|
||||||
|
|
||||||
|
setopt notify globdots pushdtohome cdablevars autolist # correct
|
||||||
|
|
||||||
|
setopt recexact longlistjobs
|
||||||
|
|
||||||
|
setopt autoresume histignoredups pushdsilent noclobber
|
||||||
|
|
||||||
|
setopt autopushd pushdminus rcquotes mailwarning extendedglob
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# End of lines configured by zsh-newuser-install
|
||||||
|
# The following lines were added by compinstall
|
||||||
|
zstyle :compinstall filename '/home/kressh//.zshrc'
|
||||||
|
bindkey -e
|
||||||
|
autoload -U zcalc
|
||||||
|
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit
|
||||||
|
zmodload -a zsh/stat stat
|
||||||
|
zmodload -a zsh/zpty zpty
|
||||||
|
zmodload -a zsh/zprof zprof
|
||||||
|
zmodload -ap zsh/mapfile mapfile
|
||||||
|
|
||||||
|
zstyle ':completion:*' menu no
|
||||||
|
# End of lines added by compinstall
|
||||||
|
|
||||||
|
PS1="$(print '%{\e[1;32m%}%n@%m%{\e[0m%}') $(print '%{\e[1;36m%}%T%{\e[0m%}') $(print '%{\e[1;34m%}%~') $(print '%{\e[1;34m%}%(!.#.$) %{\e[0m%}')"
|
||||||
|
PS2="$(print '%{\e[1;34m%}>%{\e[0m%}')"
|
||||||
|
# RPROMPT="$(print '%{\e[1;36m%}[%T]%{\e[0m%}') %y%b"
|
||||||
|
|
||||||
|
eval `dircolors`
|
||||||
|
|
||||||
|
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
|
||||||
|
export GREP_COLOR='1;32'
|
||||||
|
|
||||||
|
if [ -f /usr/bin/grc ]; then
|
||||||
|
alias ping="grc --colour=auto ping"
|
||||||
|
alias traceroute="grc --colour=auto traceroute"
|
||||||
|
alias make="grc --colour=auto make"
|
||||||
|
alias diff="grc --colour=auto diff"
|
||||||
|
alias cvs="grc --colour=auto cvs"
|
||||||
|
alias netstat="grc --colour=auto netstat"
|
||||||
|
alias mount="grc --colour=auto mount"
|
||||||
|
alias ifconfig="grc --colour=auto ifconfig"
|
||||||
|
alias dig="grc --colour=auto dig"
|
||||||
|
alias ps="grc --colour=auto ps"
|
||||||
|
fi
|
||||||
|
|
||||||
|
myip() {links -source http://www.formyip.com/ |grep The | awk {'print $5'}}
|
||||||
|
|
||||||
|
## key binds Pgup pgdown, home, end
|
||||||
|
|
||||||
|
bindkey "^[[2~" yank
|
||||||
|
bindkey "^[[3~" delete-char
|
||||||
|
bindkey "^[[5~" up-line-or-history
|
||||||
|
bindkey "^[[6~" down-line-or-history
|
||||||
|
bindkey "^[[7~" beginning-of-line
|
||||||
|
bindkey "^[[8~" end-of-line
|
||||||
|
bindkey "^[e" expand-cmd-path ## C-e for expanding path of typed command
|
||||||
|
bindkey "^[[A" up-line-or-search ## up arrow for back-history-search
|
||||||
|
bindkey "^[[B" down-line-or-search ## down arrow for fwd-history-search
|
||||||
|
bindkey " " magic-space ## do history expansion on space
|
||||||
|
|
||||||
|
# для kill и killall
|
||||||
|
zstyle ':completion:*:processes' command 'ps -xuf'
|
||||||
|
zstyle ':completion:*:processes' sort false
|
||||||
|
zstyle ':completion:*:processes-names' command 'ps xho command'
|
||||||
|
|
||||||
|
limit stack 8192 # лимит объёма памяти, выделеной под стек, дабы не переполнялся
|
||||||
|
limit core 0 # Выключаем запись дампов упавших в корку программ
|
||||||
|
umask 022 # Установка атрибутов доступа создаваемых файлов
|
||||||
|
|
||||||
|
|
||||||
|
autoload -U pick-web-browser
|
||||||
|
alias -s {html,htm,mht}=pick-web-browser
|
||||||
|
|
||||||
|
export LESS="-R"
|
||||||
|
|
||||||
|
unsetopt nomatch
|
||||||
|
|
||||||
|
# Установка нормального поведения клавиш Delete, Home, End и т.д. Запустится программка, которая попросит Вас поочередно нажимать клавиши, которые она будет запоминать. После появится каталог ~/.zkbd, в котором должен появится файлик xterm. Должен, но появится там файлик с несколько другим именем, поэтому ручками его переименовываем в xterm.
|
||||||
|
|
||||||
|
# autoload zkbd
|
||||||
|
# [[ ! -d ~/.zkbd ]] && mkdir ~/.zkbd
|
||||||
|
# [[ -f ~/.zkbd/$TERM ]] && source ~/.zkbd/$TERM
|
||||||
|
# [[ ! -f ~/.zkbd/$TERM ]] && zkbd
|
||||||
|
|
||||||
|
[[ -n ${key[Backspace]} ]] && bindkey "${key[Backspace]}" backward-delete-char
|
||||||
|
[[ -n ${key[Insert]} ]] && bindkey "${key[Insert]}" overwrite-mode
|
||||||
|
[[ -n ${key[Home]} ]] && bindkey "${key[Home]}" beginning-of-line
|
||||||
|
[[ -n ${key[PageUp]} ]] && bindkey "${key[PageUp]}" up-line-or-history
|
||||||
|
[[ -n ${key[Delete]} ]] && bindkey "${key[Delete]}" delete-char
|
||||||
|
[[ -n ${key[End]} ]] && bindkey "${key[End]}" end-of-line
|
||||||
|
[[ -n ${key[PageDown]} ]] && bindkey "${key[PageDown]}" down-line-or-history
|
||||||
|
[[ -n ${key[Up]} ]] && bindkey "${key[Up]}" up-line-or-search
|
||||||
|
[[ -n ${key[Left]} ]] && bindkey "${key[Left]}" backward-char
|
||||||
|
[[ -n ${key[Down]} ]] && bindkey "${key[Down]}" down-line-or-search
|
||||||
|
[[ -n ${key[Right]} ]] && bindkey "${key[Right]}" forward-char
|
||||||
|
|
||||||
|
|
||||||
|
# SSH – автозаполнение хостов, юзеров. Пробелов между %% быть не должно.
|
||||||
|
# hosts=(${${${(f)"$(<$HOME/.ssh/known_hosts)"}%%\*}%%,*})
|
||||||
|
zstyle ':completion:*:hosts' hosts $hosts
|
||||||
|
zstyle ':completion:*:(ssh|scp):*' tag-order '! users'
|
||||||
|
|
||||||
|
# Отображение в заголовке окна терминала информации о номере консоли, пути и выполняемой команде
|
||||||
|
precmd()
|
||||||
|
{
|
||||||
|
[[ -t 1 ]] || return
|
||||||
|
case $TERM in
|
||||||
|
*xterm*|rxvt|(dt|k|E)term*) print -Pn "\e]2;[%~] :: %l\a"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
preexec() {
|
||||||
|
[[ -t 1 ]] || return
|
||||||
|
case $TERM in
|
||||||
|
*xterm*|rxvt|(dt|k|E)term*) print -Pn "\e]2;<$1> [%~] :: %l\a"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
# shopt -s extglob; if [[ -z $DISPLAY ]] && ! pgrep X &>/dev/null; then tput setaf 3; tput bold; read -t 5 -p 'Start X? [Y/n] '; tput sgr0; [[ -z $REPLY || $REPLY = [Yy]?([Ee][Ss]) ]] && startx; fi
|
||||||
|
|
||||||
|
export LANGUAGE="en_US:en_GB:en"
|
||||||
|
|
||||||
|
# RVM stuff
|
||||||
|
# [[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm" # Load RVM into a shell session *as a function*
|
||||||
|
# PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
|
||||||
|
|
||||||
|
# rbenv stuff
|
||||||
|
unset RUBYOPT
|
||||||
|
|
||||||
|
PATH="$HOME/.rbenv/bin:$PATH"
|
||||||
|
eval "$(rbenv init -)"
|
||||||
|
|
||||||
|
source $HOME/.rbenv/completions/rbenv.zsh
|
||||||
|
|
||||||
|
# bundler aliases
|
||||||
|
alias rails="bundle exec rails"
|
||||||
|
alias hanami="bundle exec hanami"
|
||||||
|
alias rake="bundle exec rake"
|
||||||
|
alias rspec="bundle exec rspec"
|
||||||
|
alias foreman="bundle exec foreman"
|
||||||
|
alias sidekiq="bundle exec sidekiq"
|
||||||
|
alias cap="bundle exec cap"
|
||||||
|
alias mina="bundle exec mina"
|
||||||
|
alias heroku="~/Soft/heroku-client/bin/heroku"
|
||||||
|
alias rgrep="grep --exclude-dir=Godeps --exclude-dir=node_modules --exclude-dir=log --exclude-dir=vendor --exclude-dir=tmp --exclude-dir=public --exclude-dir=.git --exclude=.swp -rn"
|
||||||
|
alias vagrant="BUNDLE_GEMFILE=$HOME/Soft/vagrant/Gemfile bundle exec vagrant"
|
||||||
|
alias vimb="HTTP_PROXY='http://localhost:8118' vimb"
|
||||||
|
alias chromium="chromium --proxy-server='localhost:8118'"
|
||||||
|
alias grep="grep --color=auto"
|
||||||
|
alias bdocker="DOCKER_HOST=tcp://10.8.0.1:2375 docker"
|
||||||
|
alias wiki="cd ~/wiki && vim index.md"
|
||||||
|
alias gwiki="cd ~/wiki && gvim index.md"
|
||||||
|
|
||||||
|
alias gulp-watch="./node_modules/.bin/gulp watch; notify-send -i error 'Gulp has crashed'"
|
||||||
|
|
||||||
|
#export PATH="$HOME/Soft/vagrant/bin:$PATH"
|
||||||
|
|
||||||
|
# Google SDK
|
||||||
|
export CLOUDSDK_PYTHON=/usr/bin/python2
|
||||||
|
# The next line updates PATH for the Google Cloud SDK.
|
||||||
|
source '/home/kressh/Soft/google-cloud-sdk/path.zsh.inc'
|
||||||
|
# The next line enables bash completion for gcloud.
|
||||||
|
source '/home/kressh/Soft/google-cloud-sdk/completion.zsh.inc'
|
||||||
Reference in New Issue
Block a user