mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
set nocompatible
execute pathogen#infect()
syntax on
filetype plugin indent on
mkdir -p ~/.vim/autoload ~/.vim/bundle && \
curl -LSso ~/.vim/autoload/pathogen.vim https://tpo.pe/pathogen.vim
set nocompatible
execute pathogen#infect()
syntax on
filetype plugin indent on
#!/bin/sh | |
# query xkb map: us,latam -> us is primary; latam,us -> latam is primary | |
dummy=`setxkbmap -query | grep us,latam` | |
# return value 0: us,latam; return value != 0, latam,us | |
if [ $? -ne 0 ]; then | |
# latam is primary, now make us primary in list | |
setxkbmap -model pc101 -layout us,latam -variant nodeadkeys | |
else |
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| | |
if instance.instance_of? ActionView::Helpers::Tags::Label | |
html_tag | |
else | |
%(<div class="form-field error">#{html_tag}<small class="error"> #{[*instance.error_message].join(', ')}</small></div>).html_safe | |
end | |
end |
git remote -v | |
git remote add upstream https://github.com/ORIGINAL_OWNER/ORIGINAL_REPOSITORY.git | |
git remote -v | |
git fetch upstream | |
git checkout master | |
git rebase upstream/master # git merge upstream/master |