Skip to content

Instantly share code, notes, and snippets.

@armonge
Last active October 7, 2016 16:16
Show Gist options
  • Save armonge/21a49ad588afea880ed1934eb8e1b384 to your computer and use it in GitHub Desktop.
Save armonge/21a49ad588afea880ed1934eb8e1b384 to your computer and use it in GitHub Desktop.
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# open new tabs in same directory
source /etc/profile.d/vte.sh
# Clojure
# source /etc/profile.d/clojure.sh
# source /usr/share/bash-completion/completions/lein
# history
shopt -s histappend
HISTSIZE=5000
HISTFILESIZE=10000
# fix issue on terminal resize
shopt -s checkwinsize
# Alias
eval $(thefuck --alias)
# alias spotify='spotify --force-device-scale-factor=2'
alias subdl='subdl --lang="spa"'
alias ls='ls --color=auto'
alias ll='ls -la'
alias vi='vim'
alias grep='grep --color=auto'
alias serve='python2 -m SimpleHTTPServer'
alias java='drip'
alias sqlite3x="$HOME/.virtualenvs/def/bin/python -c 'import apsw;apsw.main()' "
PS1='[\u@\h \W]\$ '
# VIM
export VISUAL=vim
export EDITOR=vim
# GO
export GOPATH=$HOME/go
export PATH=$HOME/go/bin:$PATH
# Android
export ANDROID_HOME=$HOME/Android/Sdk
export PATH=$ANDROID_HOME/platform-tools:$ANDROID_HOME/tools:$PATH
# Android Studio
export PATH=$HOME/bin/android-studio/bin:$PATH
# Popcorn Time
export PATH=$HOME/bin/Popcorn-Time:$PATH
alias Popcorn-Time='Popcorn-Time --force-device-scale-factor=2'
# pacman
alias pacman='pacman --color=always'
# less
alias less='less -R'
# git
source /usr/share/git/completion/git-completion.bash
source /usr/share/git/completion/git-prompt.sh
export GIT_PS1_SHOWCOLORHINTS=1
export GIT_PS1_SHOWUPSTREAM="auto"
export GIT_PS1_SHOWUNTRACKEDFILES=1
export GIT_PS1_SHOWSTASHSTATE=1
export GIT_PS1_SHOWDIRTYSTATE=1
PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ '
# python
export WORKON_HOME=$HOME/.virtualenvs
source /usr/bin/virtualenvwrapper.sh
# gitignore.io
function gi() { curl -L -s https://www.gitignore.io/api/$@ ;}
# ~/bin
export PATH="$HOME/bin:$PATH"
# NVM
export NVM_DIR="/home/armonge/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm
# Heroku
PATH="/usr/local/heroku/bin:$PATH"
# Include Drush bash customizations
# source $HOME/.drush/drush.bashrc
# Bundler
export GEM_HOME=$(ruby -e 'print Gem.user_dir')
PATH=/home/armonge/.gem/ruby/2.3.0/bin:$PATH;
# Django
source $HOME/bin/django_bash_completion
#http://boredzo.org/blog/archives/2016-08-15/colorized-man-pages-understood-and-customized
man() {
env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \
LESS_TERMCAP_se=$(printf "\e[0m") \
LESS_TERMCAP_so=$(printf "\e[1;44;33m") \
LESS_TERMCAP_ue=$(printf "\e[0m") \
LESS_TERMCAP_us=$(printf "\e[1;32m") \
man "$@"
}
let g:spf13_bundle_groups=['general', 'youcompleteme', 'programming', 'php', 'python', 'javascript', 'go']
let g:spf13_use_powerline=1
Bundle 'digitaltoad/vim-pug'
Bundle 'saltstack/salt-vim'
Bundle 'mattn/emmet-vim'
Bundle 'digitaltoad/vim-jade'
Plugin 'editorconfig/editorconfig-vim'
Plugin 'mattn/flappyvird-vim'
" Clojure
Plugin 'guns/vim-clojure-static'
Plugin 'tpope/vim-fireplace'
" Ethereum
Plugin 'tomlion/vim-solidity'
" Sql
Plugin 'vim-scripts/SQLUtilities'
Plugin 'vim-scripts/Align'
" JSX
Plugin 'mxw/vim-jsx'
" HTML
Bundle 'amirh/HTML-AutoCloseTag'
Bundle 'hail2u/vim-css3-syntax'
Bundle 'airblade/vim-rooter'
syntax on
set foldlevel=9
set tabstop=2
set expandtab
set softtabstop=2
set relativenumber
set shiftwidth=2
let g:syntastic_javascript_checkers = ['eslint']
let g:user_emmet_settings = webapi#json#decode(join(readfile(expand('~/.snippets_custom.json')), "\n"))
let g:rainbow_active = 1 "0 if you want to enable it later via :RainbowToggle
let g:jsx_ext_required = 0
let g:rooter_use_lcd = 1
let g:rooter_silent_chdir = 1
let g:pymode_rope_goto_definition_cmd = 'e'
vmap <silent>sf <Plug>SQLU_Formatter<CR>
nnoremap <C-c> <silent> <C-c>
nmap <C-c>g :YcmCompleter GoTo<CR>
autocmd Filetype python nmap <C-c>g :call pymode#rope#goto_definition()<CR>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment